# Demonstrates shapes and colours in Processing # Copyright 2021 Roland Richter # Creates a 600×450 canvas with "Light sky blue" background # HINT You can look up colors (e.g. http://latexcolor.com/), # but you can also use the Color Selector dialog in the # Tools menu above. size(600, 450) background("#87CEEB") stroke("#FF4500") # QUIZ What is the difference between the fill("#FFCC33") # stroke color and the fill color? # QUIZ What happens if you increase the stroke weight? strokeWeight(1) # QUIZ What does noStroke() do? # noStroke() # Draw a circle with diameter 42 circle(40, 25, 42) # Where is it? circle(400, 25, 42) # ... and now? circle(40, 250, 42) # ... and now? circle(40, 2500, 42) # ... and now? circle(width-40, 25, 42) # ... now? circle(40, height-25, 42) # ... now? circle(width-40, height+5, 42) # ... now? circle(0.5*width, 0.3*height, 42) # ? # QUIZ Above, eight circles are drawn to the canvas. # How many can you see? Why? # ---------------------------------------------------------------------- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see .