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

Ticket #47 (closed task: fixed)

Opened 12 years ago

Last modified 12 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:

Description

See forum thread http://www.dsource.org/forums/viewtopic.php?t=2680 .

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.