Try to answer the following questions:
1. What is 'alpha' in computer graphics?
Choose an answer Short for alphabet The first letter of the Greek alphabet An abbreviation for 'A Lot Of Purple-Headed Androids' Transparent-ness
2. This code makes a dot in the middle of the window. What colour will it be?
size(400,400); background(0,0,0); stroke(255,255,255,50); point(200,200);
size(400,400);
background(0,0,0);
stroke(255,255,255,50);
point(200,200);
3. How do you make something look like it's moving in Processing?
Choose an answer You can't do this in processing Use the move(x,y); command Draw it again and again at different X,Y locations
4. What HSB in colorMode(HSB,100); for?
Choose an answer Hue, Saturation, Brightness Horrible Smelly Bathroom Harmony, Synthesis, Binary Hardness, Softness, Blackness I can't remember
5. What will happen?
void setup() { size(400,400); background(0); } int mrDot1X = 0; int mrDot1Y = 200; int mrDot2X = 200; int mrDot2Y = 0; void draw() { stroke(255,0,0); point(mrDot1X, mrDot1Y); stroke(0,0,255); point(mrDot2X, mrDot2Y); mrDot1X +=1; mrDot2Y +=1; }
Choose an answer Processing will draw a blue dot and a red dot Processing will draw a blue vertical line and a red horizontal line Processing will draw a red vertical line and a blue horizontal line Processing will draw alternating blue and red dots Processing will crash
6. What will happen if you tell processing the following?
size(400, 400); background(0,0,0); stroke(100,50,255); mrX = 200; mrY = 200; point(mrX, mrY);
Choose an answer Processing will do nothing Processing will make a purple dot in the middle of a 400 by 400 window Processing will crash because '=' should be '==' Processing will crash because it doesn't know what mrX and mrY are
7. Don't forget the _______?
Choose an answer Pixels CamelCaps Gets RGBs strokeWeight() fill() point() stroke() ellipse() rect() circleSize() variable while loop twirlDirection void draw(){} background(r,g,b); SEMI COLON!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Go back to the home page.