Search found 2 matches

by apajx
Thu Feb 19, 2015 2:25 pm
Forum: Support and Development
Topic: [Solved] Canvas drawing problems
Replies: 5
Views: 2838

Re: Canvas drawing problems

Otherwise the canvas itself is drawn with the color black in random cases (namely in those cases, where the last pixel was black). Wow. Thank you. I feel like a complete idiot. No wonder it was dependent on the random number generator... because it was completely dependent on the color the last rec...
by apajx
Thu Feb 19, 2015 5:21 am
Forum: Support and Development
Topic: [Solved] Canvas drawing problems
Replies: 5
Views: 2838

[Solved] Canvas drawing problems

In the below code i'm trying to draw rectangles to a canvas at random positions. However, seemingly dependent on the random value, the canvas drawing to the screen appears to fail (even though the code path through the if is definitely hit). There is a 4 x 4 square that should appear on the screen n...