Draw pixel 2: Difference between revisions

From Rosetta Code
Content added Content deleted
(This should be a draft task as there aren't yet any solutions. Also (255, 255, 0) is yellow, not green, in the RGB color model.)
m (General tidy up.)
Line 2: Line 2:


;Task:
;Task:
Create a window and draw a pixel in it
Create a window and draw a pixel in it, subject to the following:


::#  1-the window is 640 x 480
::#  the window is 640 x 480
::#  2- the color of the pixel must be yellow (255,255,0)
::#  the color of the pixel must be yellow (255,255,0)
::#  3-that the position of the pixel is random
::#  the position of the pixel is random

Revision as of 11:37, 9 May 2018

Draw pixel 2 is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.
Task

Create a window and draw a pixel in it, subject to the following:

  1.  the window is 640 x 480
  2.  the color of the pixel must be yellow (255,255,0)
  3.  the position of the pixel is random