Drawing Words ✏️¶
Put names, labels and speech bubbles in your pictures
Your First Words 💬¶
To draw words, draw text and put the words in its content, inside quotes:
// Default canvas: 800 wide, 600 tall, white
draw text at 50, 100 having content "Hello, world!"
The quotes tell VeeLang where your words start and stop.
Where do the words go?
at is where the words start, on the line they sit on, like the line on a page in your notebook. The words go to the right of at, and up from it.
Big and Small Words 🔠¶
size makes the letters bigger or smaller:
// Default canvas: 800 wide, 600 tall, white
draw text at 30, 60 having content "small", size 16
draw text at 30, 130 having content "medium", size 40
draw text at 30, 240 having content "BIG!", size 90
Colorful Words 🌈¶
color (or fill) colors the letters:
// Default canvas: 800 wide, 600 tall, white
draw text at 40, 80 having content "Red", size 50, color "red"
draw text at 40, 150 having content "Green", size 50, color "green"
draw text at 40, 220 having content "Blue", size 50, fill "blue"
Fancy Letters 🖋️¶
font changes how the letters look. These fonts work everywhere:
"sans-serif": plain letters (this is what you get if you don't choose)"serif": letters with little feet, like in a book"monospace": every letter the same width, like a typewriter"cursive": joined-up, handwriting letters
// Default canvas: 800 wide, 600 tall, white
draw text at 30, 60 having content "Plain letters", size 32, font "sans-serif"
draw text at 30, 120 having content "Book letters", size 32, font "serif"
draw text at 30, 180 having content "Typewriter", size 32, font "monospace"
draw text at 30, 240 having content "Handwriting", size 32, font "cursive"
Labels for Your Drawings 🏷️¶
Words are great for labeling the parts of a picture:
// Default canvas: 800 wide, 600 tall, white
draw circle sun at 300, 90 having radius 50, fill "gold"
draw text at 270, 175 having content "Sun", size 24, color "orange"
draw square house at 60, 140 having size 120, fill "lightblue"
draw text at 85, 300 having content "House", size 24, color "steelblue"
A Speech Bubble 🗨️¶
The tail is drawn first, so the bubble covers the top of it:
// Default canvas: 800 wide, 600 tall, white
draw triangle having corner1 at 140, 125, corner2 at 180, 135, corner3 at 110, 200, fill "white", stroke "black", thickness 3
draw oval at 220, 100 having width 260, length 110, fill "white", stroke "black", thickness 3
draw text at 130, 110 having content "Hi there!", size 36, color "purple"
Challenge Time! 🏆¶
- 🌟 Challenge 1: Write your name in big letters, using your favorite color and font.
- 🌟 Challenge 2: Draw a sign: a rectangle with words inside it.
- 🌟 Challenge 3: Draw a face with a speech bubble saying something funny.
What's Next? 🚀¶
You can now draw words, and change their size, color and font.
Next up: numbers and math, where the computer does the counting for you! 🔢