Questions and Answers 100% Solved
Change the radius of a circle ✔✔circle.setRadius(radius);
Get the position of the center of the circle ✔✔var x = circle.getX(); var y = circle.getY();
Add objects to your screen ✔✔add(obj);
Get location of the upper left corner of the rectangle ✔✔var x = rect.getX(); var y =
rect.getY();
Create an Arc ✔✔var myArc = new Arc(radius, start, end, unit);
More specifically, the parameters are:
radius of the arc starting angle of the
, arc ending angle of the arc angle unit
(0 for degrees, 1 for radians)
Create a line ✔✔To draw a line from (x1, y1) to (x2, y2) var line = new Line(x1, y1, x2, y2);
Set the line color to green line.setColor(Color.green); Set the line width to 10 pixels
line.setLineWidth(10);
For Loop ✔✔for(var i = 0; i < COUNT; i++){
}
While Loop ✔✔while(boolean expression){
/* Repeat code betweeen brackets while
* 'boolean expression' is true */
}
If Statement ✔✔if(BOOLEAN_EXPRESSION){