VeeLang

Ask a shape where it is! ๐Ÿ“

Every shape has an at. It tells VeeLang where to draw the shape.

Now you can ask a shape where it is. Write its name, a dot, and at:

house.at

Before today, this didn't work. VeeLang said it was a mistake. But it wasn't your mistake: it was VeeLang's! Now it's fixed. ๐Ÿ› ๏ธ

Build a chimney ๐Ÿ 

This house has a chimney. The chimney asks the house where it is, and puts itself on the roof:

Canvas paper having width 400, length 260,
  fill "lightskyblue"
draw rectangle house at 120, 120
  having width 160, length 120, fill "tomato"
draw rectangle chimney at house.at.x + 110, house.at.y - 40
  having width 25, length 40, fill "brown"
draw circle at chimney.at.x + 12, chimney.at.y - 20
  having radius 12, fill "white"
draw circle at chimney.at.x + 30, chimney.at.y - 45
  having radius 16, fill "white"
Open in the Playground
  • house.at.x is how far across the house is.
  • house.at.y is how far down the house is.

So house.at.y - 40 means "40 higher than the house". The smoke does the same thing with the chimney. ๐Ÿ’จ

Try it! ๐ŸŽฏ

Press Open in the Playground under the drawing, then:

  • ๐ŸŒŸ Change the house's 120, 120 to 40, 100. The chimney and the smoke move with the house, because they ask the house where it is!
  • ๐ŸŒŸ Add a door. Use house.at.x and house.at.y to put it at the bottom of the house.
  • ๐ŸŒŸ Add more smoke, higher and higher.

Have fun! โœจ

More news