Assignment 02.00 - Font Size

For this assignment, we'll be using variables to easily change the size of a font in Scratch.

Part 0: Remix

0. Sign in to Scratch.


1. Open the Remixable Starter Version of Font Size on Scratch.



2. Click on Remix.




Part 1: Build Your Custom Sized Fonts

After you've remixed the Font Size starter project, it's time to change the code to use different font sizes.

Requirement 0: Enable Font Sizes for 'S', 'E', and 'A' in "AFSE"

(80% towards your grade)

Replace the VALUES used to draw the lines in each letter in AFSE with VARIABLES that allow the user to easily change the size of each letter.
  • In the "S Pencil" sprite, create and use a variable named fontSizeS that controls the size of the "S". Display the value of that variable on the screen. To check if your "S" is drawn to the right size for each value, compare the results of your Scratch project with this Google drawing. (65% towards your grade)
           

  • In the "E Pencil" sprite, create and use a variable named fontSizeE that controls the size of the "E". Display the value of that variable on the screen. To check if your "E" is drawn to the right size for each value, compare the results of your Scratch project with this Google drawing. (10% towards your grade)
         

  • In the "A Pencil" sprite, create and use a variable named fontSizeA that controls the size of the "A". Display the value of that variable on the screen. To check if your "A" is drawn to the right size for each value, compare the results of your Scratch project with this Google drawing. (5% towards your grade)
         


Requirement 1: Draw 'F' With Custom Font Size

(10% towards your grade)

In the "F Pencil" sprite, add the blocks that will draw "F" at different sizes. The variable that controls the size of the "F" should be named fontSizeF. Display the value of that variable on the screen. To check if your "F" is drawn to the right size for each value, compare the results of your Scratch project with this Google drawing (to be added soon).

Make sure that the lower horizontal line is half the length of the upper horizontal line.
       

Requirement 2: Draw Custom Sized Pictures

(10% towards your grade)

There are some pretty strange fonts that are made up only of pictures--check out the Wikipedia article on Wingdings and Webdings if you're curious.

Create a new sprite that will draw a custom sized picture based on one or two variables. You can choose from one of the symbols below.




  • Use ONE variable named pictureSize to control the size of your picture. (5% towards your grade)
  • Use TWO variables named pictureSizeWidth and pictureSizeHeight to control the size of your picture. pictureSizeWidth should control only the width of your picture. pictureSizeHeight should control only the height of your picture. (5% towards your grade)




Part 2: Submit It!

0. Make sure that you SHARE your project first!


1. AFTER SHARING, submit your project using this Google form.


Comments