Draw pixel 2: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 4: Line 4:
Create a window and draw a pixel in it
Create a window and draw a pixel in it


::#  1-the window is 320 x 240
::#  1-the window is 640 x 480
::#  2- the color of the pixel must be red (255,0,0)
::#  2- the color of the pixel must be green (255,255,0)
::#  3-that the position of the pixel is x = 100, y = 100
::#  3-that the position of the pixel is random

Revision as of 03:16, 2 May 2018

Task
Draw pixel 2
You are encouraged to solve this task according to the task description, using any language you may know.
Task

Create a window and draw a pixel in it

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