Note: This website is archived. For up-to-date information about D projects and development, please visit

Ticket #47 (closed task: fixed)

Opened 14 years ago

Last modified 14 years ago

use float for colors in arc.draw.color

Reported by: ChristianK Assigned to: ChristianK
Priority: major Milestone: 0.2
Component: graphics Version: svn
Keywords: Cc:


See forum thread .

Floats can represent more colors that ubytes. Also provide backwards-compatibility ubyte constructors though.

Change History

05/05/07 17:58:15 changed by ChristianK

  • status changed from new to closed.
  • resolution set to fixed.

The constructor overload was tricky to get right. I use some template magic now that should work well and be relatively foolproof.