What's new
Everything new in VeeLang, newest first. Some changes have a news post that tells you more.
Almost always, the programs you've already made keep working. π When we have to change something, it's listed under Changed, with what to write instead.
4 November 2026
New β¨
- A line can turn corners:
draw lines hook from 0, 0 to 0, 40 to 30, 40, with as many points as you like. It is one line, so the corners are joined even when it is thick, andstartheadandendheadgo at its very start and end:having endhead "arrow". - In a recipe, a
whencan be followed byotherwise { }, for any other value of the setting:when tail is "yes" { β¦ } otherwise { }. An optional part no longer needs an empty block to switch it off, and the setting can then have any value. - A recipe's setting can hold a bunch, for a recipe that draws as many things as it is given. Start it as
empty, make the bunch on a line of its own, and give its name:shape stack having heights empty { β¦ }, thenbunch tall = 1, 3, 2anddraw stack s at 40, 0 having heights tall. The recipe reads it like any bunch,heights[n]andheights.count.
3 November 2026
New β¨
- A position can be written in brackets,
(200, 100), as well as200, 100. They mean the same, wherever a position goes:draw circle at (200, 100),move ball to (50, 50),draw line from (0, 0) to (100, 40). - A variable can hold a place:
home = (60, 100), thendraw circle at home,move ball to home, andhome.xandhome.yfor its two numbers.spot = ball.centerkeeps where the ball is now. - Everything a shape can be told to do can also be written the way Python and JavaScript write it:
sun.turn(by=90, seconds=3)isturn sun by 90 in 3 seconds.move,turn,grow,shrink,show,hide,beat,waitandstopall work, and a place is(x, y):sun.move(by=(50, 0), seconds=2). Both ways do exactly the same. - Animations you made can be played and made the same way:
animation hop(height=30, time=1) { }, thenhop()orhop(height=50)to play it,hop.stop()to stop it, andif hop.is_playing() { }to ask whether it is running. They mean the same asplay hop having height 50,stop hopandif hop is playing. - The editor helps you write calls: type a shape's name and a dot, and it lists what the shape can do (
turn,move,grow...) and what it has (radius,fill...); pick an action and it writes a call that works. Inside the brackets it lists the names that action takes, and after one of your animations' names it offersstopandis_playing. - A recipe can have animations of its own, and each instance can be told to do them: write
animation blink { }inside the recipe, thenplay kim.blinkorkim.blink(),stop kim.blinkorkim.blink.stop(), andif kim.blink is playingorkim.blink.is_playing(). Every instance has its own, sokim.blink()doesn't makesamblink. A bunch of faces takes the call for each one at once:faces.blink(), and one of them can be told alone:faces[2].blink(). - A recipe can keep variables of its own:
number step = 4at the top of its body. Each instance has its own, its actions and scripts can read and change it (step = step + 1), and a copy takes the value it has got to.
2 November 2026
New β¨
- A line's two ends can be changed while the program runs:
string.to = 300, 150moves where it ends,string.from = ball.centermoves where it begins, andstring.to = @ball.centerkeeps it ending onballas it moves.string.to.x = 60changes just one side of an end. You can read them too, as instring.to.x.
1 November 2026
New β¨
when ball is double clicked { }runs when a shape is clicked twice quickly, and for a double tap on a tablet.when any n in nodes is double clickedworks for every shape in a bunch.- A place from
points oncan follow its shape:draw circle dot at @spots[3]stays on the same spot ofballas it moves, turns or grows, and a line can end on one withdraw line from @spots[1] to @spots[5]. Without the@the place stays where it was. - A shape can be put in a layer while the program runs:
add arrow to arrowsputs the shape in the layer calledarrows, on top of what is already there, andadd row to arrowsdoes it for every shape in a bunch. Use it for shapes made when something is clicked, so they can go underneath the others. key deleteandkey backspace:when key delete is pressed { }runs when the Delete key is pressed, and the same for Backspace.- A shape made from a recipe can have its own
whenhandlers inside it, for its own parts:when face is double clicked { label.editable = true }makes a shape's own words typeable when it is double clicked. A double tap on a tablet or a click on the shape then opens the keyboard for them.
Changed π
- A drawing that only answers clicks, drags and keys, with nothing that moves by itself, no longer shows Play, Pause and the time in the playground. It is just ready to use. Drawings that move still have them.
- The playground no longer keeps your computer busy while a drawing is still or moving: it was redrawing its grid and page far more often than it needed to.
31 October 2026
New β¨
- Two shapes can be compared with
isandis not:if row[i] is nis true when they are the same shape, even if other shapes look exactly like it. Use it to find which place in a bunch a clicked shape has, or to check it is not the one you started from. - Text you can type in: give a text
editable true, and clicking or tapping it opens the keyboard (on a tablet too). The words change as you type,contentis what was typed, and Enter counts as pressing theenterkey:draw text name at 50, 80 having content "Type your name", editable true. Use it for a label, a name in a game or the answer to a question. when ball is released { }runs when a press that began onballends, after dragging it or just clicking it, andif mouse is down { }checks whether the mouse button is held (or a finger is on the drawing). To drop something on a shape, look at what it is touching when it is let go:when ball is released { if ball is touching bin { ball.fill = "gold" } }.when any n in nodes is releasedworks for every shape in a bunch.when the drawing is clicked { }runs when someone clicks or taps the drawing where no shape takes the click, andmouse.atis the place:when the drawing is clicked { draw circle at mouse.at having radius 12 }puts a circle wherever you click. A click on a shape with awhenof its own, or on a shape you can drag, still goes to that shape.@can follow a shape picked from a bunch:draw line from @picked[1].center to @picked[2].center. Click two shapes, add them to a bunch, and a line joins them and follows them when they move. It follows the shapes that were there when the line was drawn, even if the bunch changes later.- Animations that take values. Give an animation settings after
having, each with the value it has when nobody says, and give them new values when you play it:animation hop having height 30 { move ball by 0, -height in 1 second }, thenplay hopfor a small hop andplay hop having height 80for a big one. Settings are numbers or words in quotes, you can give some and leave the rest, and two plays at the same time each keep their own values. It is the samehavingthat shapes use, so there is no need to make a new animation for every size. repeat untilandrepeat while: a loop that goes on until something is true, instead of a number of times.repeat until score > 9 { β¦ }andrepeat while score < 10 { β¦ }mean the same thing, so say it whichever way sounds right. The check is made before each time round, so a loop that is already done doesn't run at all, and you can use anythingiftakes, likeball is touching wallorspin is playing. A loop withwaitorin 1 secondinside can go on for as long as it needs; one that takes no time and never ends stops with a message after 10000 times round.everyandnone:every c in coins is touching ballis true only when all of the coins are touching the ball (an empty bunch counts as false: no coins, none touching).anyjoins the loops too:repeat until any c in coins is touching ball { wait 0.1 seconds }waits for a coin to touch the ball, and thencis that coin on the lines after the loop. While the loop is still waiting,cisnone: nothing. Check withif c is not none { β¦ }, because using something ofnone, likec.fill, is a mistake your program tells you about.
Changed π
if any c in coins is touching ball { β¦ }now runs its lines once, for the first coin that touches, not once for every coin that touches. Reading "any coin is touching" as one coin is what most people expect. To do something for every coin that touches, writerepeat for each c in coins { if c is touching ball { β¦ } }.
30 October 2026
New β¨
sinandcoswork out the sine and cosine of an angle in degrees:draw circle tip at 100 + 20 * cos 30, 100 + 20 * sin 30. Put sums in brackets, likecos (360 / sides * n), to place things round a circle, andsin @a.xfollowsa.xas it changes.- Name a shape the way you would say it:
draw circle named sun at 100, 100,draw circle called sun at 100, 100, or as a setting,draw circle at 100, 100 having name sun, radius 30, as well asdraw circle sun at 100, 100. It works for shapes you draw later, parts inside a shape, polygons, lines, arcs and shapes made from your own recipes, andanimation called spin { }andbunch named gardencan be said the same way. A name is a word without quotes, a shape keeps the name it is given, andnamedandcalledare now VeeLang's own words, so they can't be used as names.
Changed π
- A shape recipe can no longer have a setting called
glow,bordergloworglowsize, because every shape already has those, and the whole shape would glow as well as the parts. Call the setting something else, likeshine.
29 October 2026
New β¨
- Settings that hold a shape: a recipe can take another recipe as a setting, like
shape row having times 3, inner dot { β¦ }, and a drawing chooses it withdraw row r at 20, 60 having inner box, times 4. Give the shape settings of its own in brackets,having inner (box having size 20), or make it first without drawing it and use its name. It works for shapes inside shapes, to any depth. - Any word can be a recipe's setting name, including
timesandlayer. - In a recipe, each
whenblock for a different value of a setting can make a part with the same name.
Changed π
- A shape with parts keeps its line thickness when it grows or shrinks.
thickness 4used to look 8 thick aftergrow kim to 2and 2 thick aftershrink kim to 0.5; now it is 4 at any size. To get thicker lines on a bigger shape, make itsthicknessbigger too.
22 October 2026
New β¨
- See-through shapes:
opacitygoes from 0 (you can't see it) to 1 (solid), likedraw circle ghost at 100, 100 having fill "white", opacity 0.5, andghost.opacity = 0.2 in 1 secondfades it part of the way. A shape with parts fades as one picture.hideandshowstill work, andshowbrings a shape back as see-through as it was.
Changed π
- In the playground, the shape you point at or click now gets four corners and a faint box around it, instead of a coloured shadow. It's easier to see on pale shapes and thin lines, and a shape's own
glowstays on while it's marked.
21 October 2026
New β¨
A ready-made tick:
draw tick at 100, 100 having fill "green", withsizefor how big it is andwidthfor how thick its strokes are. For a wrong answer, turn a cross into an x:draw cross at 200, 100 having angle 45, fill "red".Words without quotes: a line's heads and an arc's curve can be written
endhead arrow,starthead dotorcurve big, and a misspelt word gets a "Did you mean�". Quotes still work.Words over several lines: press Enter inside the quotes of a text's
content, and each line of the code is a line in the drawing, 1.2 times the size apart. If a closing quote is missing, the mistake now says where the text starts.Text in a box: give a text a
widthand its words wrap to fit, likedraw text at 50, 50 having width 200, content "A long sentence wraps by itself.". With a width,atis the box's top-left corner, like a rectangle's, and alengthmakes it taller. You can read itswidth,lengthand corners, and when the width changes over time the words move between lines as it grows.alignputs a text's words where you want them:align center,align bottom rightoralign middle center, with one word across (left,centerorright) and one down (top,middleorbottom) in its box. Without a box,align centercentres the lines under each other.Turn or grow a shape around any place:
turn door by 90 around door.topLeft in 1 secondswings a door on its corner, andturn earth by 360 around sun.center in 4 secondssends a planet round its sun. It works withgrowandshrinktoo, and the shape really moves:earth.centeris where it has got to.Read and change the canvas:
paper.width,paper.lengthandpaper.fillwork like a shape's properties, sodraw circle at paper.width / 2, 50is always in the middle, andpaper.length = 500 in 1 secondmakes room at the bottom as the program runs. The playground shows the whole canvas as it grows.
Changed π
- A triangle's or polygon's
centeris now the middle of the box around it, and that's what it turns and grows around. It used to be the average of its corners, which could be far from where it looks. A polygon drawn withsidesstill turns around the point it was drawn around.
19 October 2026
New β¨
- Dashed and dotted outlines: write
dashedordottedbefore a shape's type, likedraw dashed line from 20, 20 to 200, 20ordotted circle ring at 100, 100. It works on lines, arcs and every shape with an outline, and the dashes grow withthickness. - Arrowheads:
draw line from 20, 60 to 200, 60 having endhead "arrow". A line or an arc can have"arrow","open"or"dot"at its start (starthead) and its end (endhead), and on an arc the head follows the curve. - Place a shape by its middle:
draw text having center box.center, content "E"puts the middle of the words in the middle of the box, exactly, however wide the letters are. It works on every shape with anat, likedraw rectangle bar having center 300, 100orbar.center = 200, 50. The shape stays centred there when it grows or its words change, andmove bar to 100, 100puts its middle there. - Rounding:
round 2.5is 3,round down (7 / 3)is 2 andround up (7 / 3)is 3.roundrounds the number straight after it, so put maths in brackets. Where VeeLang needs a whole number, likerepeat 0.7 / 0.1 times, maths that the computer works out a hair away from one (6.999999β¦) now counts as it.
Changed π
label.centeron words is now the middle of the words. It used to be the same place aslabel.at, where the words start, so writelabel.atfor that.
18 October 2026
New β¨
- Ready-made shapes:
draw star,draw heart,draw arrow,draw crossanddraw diamond.draw star s at 100, 100 having points 6, fill "gold"chooses how many tips, andinnerhow thin it is. They're recipes written in VeeLang, so they turn, grow and change like any shape, and a recipe of your own with the same name still wins. 12 points on rimgives 12 places spread evenly round a shape, starting at 12 o'clock and going clockwise, like the numbers on a clock:repeat for each p in 12 points on rim { draw circle at p having radius 5 }. It works on any shape with an outline, even a hidden one.- A polygon can take its corners from a bunch of places:
draw polygon from 5 points on rim.
17 October 2026
New β¨
- Patterns:
fill ball with dotfills a shape with copies of any other shape, in rows, kept inside its outline.having gap 6, angle 30, backcolor "pink"spaces them out, turns the rows and colours what's behind them. A line makes stripes, your own recipe makes flowers, and a filled shape can be copied too. ball.fill.gap,ball.fill.angleandball.fill.backcolorread and change a pattern, at once or over time, like any other property. Changing the copied shape changes every copy at once.colourworks wherevercolordoes:colour "red",ball.colour = "blue".
16 October 2026
New β¨
- Shapes can glow:
glow "gold"gives a shape a soft light all round it, andborderglow "deepskyblue"makes its outline glow like a neon sign.glowsize 60says how far the light reaches. A shape with parts glows as a whole, and the light doesn't count when shapes touch. beat heartmakes a shape beat once, like a heart: it grows a little and comes back.beat heart 3 times by 1.5 in 2 secondschooses how many, how big and how long, andbeat lamp.glowmakes its light beat instead. Put it in aforeverwith awaitto keep it beating.nonemeans no colour, without quotes:fill noneleaves a shape see-through inside,color nonetakes away its outline, andlamp.glow = noneturns a glow off.
15 October 2026
New β¨
- The mouse:
mouse.x,mouse.yandmouse.atsay where it is, sodraw circle dot at @mouse.atfollows it around.if mouse is over ball { }checks whether it is over a shape right now, andmouse is over the drawingwhether it is on the drawing at all. whentakes any check:when mouse is over ball { }runs each time the mouse moves onto the ball,when score > 10 { }the moment the score passes 10, andwhen ball is touching wall { }works too. It runs once each time the check turns true.- Shapes you can drag:
draggable truelets you drag a shape with the mouse, or a finger on a tablet. What follows it comes along, andwhen ball touches goal { }runs when you drop it in.ball.draggable = falsestops it. - On a tablet or phone, pinch the drawing with two fingers to zoom it in the playground; one finger still scrolls the page. A finger can't hover, so
mouse is overis only for a mouse. - A code editor made for fingers: on a tablet or phone, the playground's code now selects, copies and pastes the way your device always does, with big buttons on the number slider. The π / π±οΈ button above the code switches between it and the editor made for a mouse.
13 October 2026
New β¨
- Shapes can bump into each other:
if ball is touching wall { }checks whether two shapes touch right now, andwhen ball touches coin { }runs each time they start touching, so you can stop at walls, collect coins and score points. Borders count, every shape is solid, and a shape with parts touches with all of them (or name one, likeface.nose). The new tutorial, Bumping into Things, shows how. - Bunches: keep lots of things together under one name.
bunch colors = "red", "orange", "gold"makes one (listworks too),colors.countcounts them andcolors[2](oritem 2 of colors) picks one: the first is item 1. Writeadd to balloonsafter a loop's}(or any block) to keep every shape it makes, then change them all at once withballoons.fill = "pink"ormove balloons by 0, -100 in 2 seconds, go through them withrepeat for each b in balloons { }, take one out withremove, and react to any of them withwhen any b in balloons is clicked { }orif any c in coins is touching ball { }.play animation { β¦ } add to growingkeeps animations too, so a click canstopone. The new tutorial, Keeping Things Together, shows how.
12 October 2026
New β¨
- Random numbers:
random 1 to 6picks a number, like rolling a dice, anywhere a number goes. Scatter stars withat random 20 to 780, random 20 to 580, or wait a surprise time withwait random 1 to 3 seconds. The picture keeps its numbers while you type; a drawing that moves gets new ones on Restart, and any drawing when you reload the page. - Play with the keyboard:
if key rightarrow is down { }steers while you hold a key, andwhen key space is pressed { }runs each time you press one. A recipe's setting can hold a key, so two players can share one keyboard. Click the drawing to give it the keys; the β¨οΈ shows where they go.
11 October 2026
New β¨
- A shape's
{ }and a recipe can take time and listen for clicks: a face can blink by itself with aforeverinside its recipe, andwhen eye is clicked { }can go inside it, using the part's own name. Every face you draw gets its own blink and its own clicks, and a copy blinks in step with the one it was copied from. - Numbers can go in text:
"Score: " + scorejoins words and a number with+, andcontent scoreshows the number on its own. Numbers show at most two decimals, so10 / 3shows 3.33.
Changed π
- A mistake that only shows up while the drawing runs, like dividing by 0, keeps what was drawn before it on the screen, with the message. Before, the drawing was empty.
- Before you press Play, the drawing shows how it looks at the very start: a
foreverthat first turns a shape red shows it red, and shapes drawn later appear when they're drawn. - A
when β¦ is clickedinside arepeatstarts working when the loop gets to it. - Changes that
move,turn,groworshrinkthe same shapebyan amount at the same time add up: a click that turns a box while aforeverturns it adds its turn to the forever's. Before, the newer change took over and the box stood still until the older one's line ended.
10 October 2026
Fixed π οΈ
- Every VeeLang word works in any capitals:
draw,DrawandDRAWall draw. Before, some words worked with any capitals and others only in small letters or with a capital first letter. - Text with no closing quote, like
"hello, says so on the website and in the playground. Before, the message there was just "I didn't expect this." - Changing hidden words with a time, like
t.content = "bye" in 1 second, keeps them hidden. Before, they appeared. sun.color = "red" in 1 secondon a shape with its ownfillchanges only its outline, as it does without a time. Before, it changed the fill too.- A copy of a shape keeps the fill it was given when you change its
color. - A shape made from a recipe that starts with nothing drawn, then gets parts in a click, stays behind the shapes drawn after it.
- In the playground, clicking a shape while it moves works every time.
- Using a variable above the line that gives it its first value says so, and a misspelt property in a change (
c.radiuss = 5) asks "Did you mean 'radius'?". - The squiggle under a mistake covers all of it, not just the start.
- The warning about shapes outside the canvas knows where turned shapes really are.
- A place written without
at, likecorner1 50, 10, puts the corner there. Before, it was quietly ignored. A size given two numbers, likeradius 50, 10, says it's a mistake instead of using the first.
8 October 2026
New β¨
- Your drawings can move! Add
in 2 secondsto a change, or writemove,turn,growandshrink,wait,foreverandtogether. Give an animation a name andplayit orstopit. Read more - Click to make things happen:
when ball is clicked { ... }. Read more - Variables remember things, like how many times you clicked:
clicks = clicks + 1. Andif ... { } otherwise { }makes choices. Read more showandhidea shape, and turn and grow any shape withangleandscale.canvasandlayerwork with or without a capital, like every other VeeLang word.- A shape can follow another one with
@:draw line from 50, 280 to @kite.centerkeeps the string on the kite, even while it flies. A part can follow another part of its shape too. Read more - A shape made from a recipe can change its settings in the animation, slowly with
in 2 seconds, or follow another shape:having size @sun.radius * 4. Read more - A shape drawn in a click or a loop can use that click's numbers everywhere, even in its parts.
- New reference pages on learn.veelang.org, with an example for every part of VeeLang.
Changed π
- A shape made from a recipe changes only through its settings. Writing
sam.eye.fill = "blue"is now a mistake: give the recipe a setting, likeeyes "black", and writesam.eyes = "blue". Read more - A recipe uses only its own settings and parts, not the other shapes and numbers in your drawing. Give it a setting for what it needs, and set it where you draw it.
Fixed π οΈ
- The parts inside a triangle, or a polygon with
sides, are measured from the shape, like every other shape's parts. Before, they were measured from the corner of the canvas. - A line inside one part of a shape, going to another part, moves with the shape.
- Using a shape on a line above the one that makes it is a mistake, with a message saying so. Before, VeeLang quietly drew it in the corner.
line.at = ...on a line or an arc says it's a mistake (move it withmoveinstead). Before, nothing happened.
6 October 2026
Fixed π οΈ
- You can ask a shape where it is:
house.at,house.at.xandhouse.at.y. Before, VeeLang said this was a mistake. Read more