GTKD drawing area remains white even SourceRgb is changed

Mike Wey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 28 04:15:09 PST 2015


On 12/28/2015 12:29 AM, TheDGuy wrote:
> My code:
>
> http://dpaste.com/1X3E1HW
>
> i store colors in the accumulator-array and draw them via
> "cr.rectangle()". Because i have some problems with the code i set the
> SourceRgb-color to a constant value but if i execute the program, the
> window remains white.

The values passed to setSourceRgb should be between 0 and 1.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list