NEW
Font size
WorksheetsJavascript Drawing
Total questions: 15
Worksheet time: 7mins
ellipse(212, 235, 100, 73);
ellipse(150, 150, 30, 30);
ellipse(278, 150, 30, 30);
The code above represents a snowman with two eyes and a nose. The code that represents the nose is:
What is the correct order of parameters in rect()?
rect(x, y, width, height);
rect(y, x, width, height);
rect(x, y, height, width);
rect(width, height, x, y);
How do you turn off the outline around the shapes?
noStroke();
stroke("transparent");
noFill();
noOutline();
ellipse(212, 235, 100, 73);
ellipse(150, 150, 30, 30);
ellipse(278, 150, 30, 30);
The code above represents a snowman with two eyes and a nose. The code that represents the nose is:
This is a set of instruction providing detail to the code.
Parameter
Function
Variable
Color is defined by these three colors
Red, purple, orange
Red, Blue, Green
Green, Blue, Orange
This saves a value, which can be then assigned when writing code
Parameter
Function
Variable
To draw an oval with its centre at the origin, width 100, height 150, filled with RED colour, which one is correct?
fill (255, 0, 0); ellipse(0, 0, 100, 150);
fill (0, 0, 0); ellipse (0, 0, 150, 100);
fill (255, 255, 255); ellipse (100, 150, 0, 0);
ellipse (0, 0, 100, 150);
