Enable JavaScript
Аҧсшәа
Afrikaans
العربية
አማርኛ
Aragonés
Asturianu
Azeri
Bahasa Indonesia
বাংলা
Беларуская
Български
Català
Česky
Cymraeg
Dansk
Deutsch
Eesti
Ελληνικά
English
Español (España)
Español Latinoamericano
Esperanto
Euskara
فارسی
Filipino
Français
Frysk
Gaeilge
Gàidhlig
Galego
한국어
Hausa
Հայերեն
עִבְרִית
हिंदी
Hrvatski
isiXhosa
isiZulu
Íslenska
Italiano
ქართული ენა
қазақша
Kichwa
Kiswahili
Kreyòl ayisyen
Kurdî
کوردیی ناوەندی
Latviešu
Lietuvių
Magyar
Māori
Монгол хэл
Nederlands
日本語
にほんご
Norsk Bokmål
Norsk Nynorsk
Occitan
ଓଡ଼ିଆ
Oʻzbekcha
ไทย
ភាសាខ្មែរ
Polski
Português
Português Brasileiro
Rapa Nui
Română
Русский
Sepedi
Setswana
Slovenčina
Slovenščina
Српски
Suomi
Svenska
Tiếng Việt
Türkçe
Українська
简体中文
繁體中文
File
Edit
Addons
Settings
See Project Page
Upload
Back to Home
Code
Costumes
Sounds
Variables
Variables
Motion
Looks
Sound
Events
Control
Sensing
Operators
Variables
Lists
My Blocks
Pen
Pen+ V7
next backdrop
25
change
color
effect by
0
set
color
effect to
set tint color to
clear graphic effects
backdrop
number
play all sounds
stop all sounds
10
change
pitch
effect by
100
set
pitch
effect to
clear sound effects
-10
change volume by
100
set volume to
%
when
clicked
when
clicked
always
when
when
space
key pressed
when
space
key hit
when mouse is scrolled
up
10
when
loudness
>
1
wait
seconds
1
wait
seconds or until
10
repeat
forever
escape loop
continue loop
switch
switch
default
exit case
ello
run next case when
ello
case
if
then
if
then
else
wait until
repeat until
while
foo
bar
if
then
else
all at once
try to do
if a block errors
Hello!
throw error
error
run
answer
world
is text?
10
is number?
space
key
pressed?
space
key
hit?
up
is mouse scrolling
?
mouse down?
mouse clicked?
mouse x
mouse y
Hello!
add
to clipboard
clipboard item
loudness
loud?
reset timer
timer
current
year
days since 2000
mobile?
1
finger
down?
1
finger
tapped?
1
finger
x
1
finger
y
username
logged in?
+
-
*
/
^
3
2
16
*
root
1
10
pick random
to
50
1
100
constrain
min
max
1
3
0.5
interpolate
to
by
50
>
50
≥
50
<
50
≤
50
=
50
≠
true
false
and
or
not
mod
round
abs
of
foo
true
value
set
to
1
return
10
move
steps
10
move
up
steps
15
turn
degrees
15
turn
degrees
random position
go to
0
0
go to x:
y:
10
10
change by x:
y:
1
random position
glide
secs to
1
0
0
glide
secs to x:
y:
90
point in direction
mouse-pointer
point towards
0
0
point towards x:
y:
turn around
10
change x by
0
set x to
10
change y by
0
set y to
if on edge, bounce
mouse-pointer
if touching
, bounce
set rotation style
left-right
move to stage
bottom-left
x position
y position
direction
Hello!
2
say
for
seconds
Hello!
say
Hmm...
2
think
for
seconds
Hmm...
think
stop speaking
Helvetica
14
set font to
with font size
set
border
color to
0
set text bubble
border line width
to
bubble width
bubble height
costume1
switch costume to
next costume
width
costume1
of
backdrop1
switch backdrop to
10
change size by
100
set size to
%
100
100
set stretch to x:
y:
x stretch
y stretch
color
effect
tint color
show
hide
visible?
this sprite
show
this sprite
hide
this sprite
is
visible?
go to
front
layer
1
go
forward
layers
1
go to layer
this sprite
go
infront
layer
costume
number
size
Squawk
play sound
until done
5
Squawk
play sound
starting at
seconds until done
Squawk
start sound
5
Squawk
start sound
at
seconds
Squawk
stop sound
1
Squawk
set fade out to
seconds on
Squawk
is
playing?
Squawk
length of
pitch
effect
volume
when this sprite clicked
when backdrop switches to
backdrop1
when I receive
message1
message1
broadcast
message1
broadcast
and wait
10
for each
my variable
in
Stage
as
Stage
stop
stop
all
when I start as a clone
myself
create clone of
myself
delete clones of
delete this clone
is clone?
mouse-pointer
touching
?
mouse-pointer
this sprite
touching
?
mouse-pointer
this sprite
touching clone of
?
touching color
?
color
is touching
?
mouse-pointer
x
of touching
point
mouse-pointer
distance to
10
-10
-10
10
distance from
to
10
-10
-10
10
direction to
from
What's your name?
ask
and wait
set drag mode
draggable
draggable?
Stage
0
set
backdrop
of
to
Stage
backdrop #
of
new line
tab character
apple
banana
join
apple
banana
pear
join
world
Hello world!
index of
in
world
Hello world!
last index of
in
1
apple
letter
of
2
3
Hello!
letters from
to
in
apple
length of
apple
a
contains
?
abcdef
abc
starts
with
?
foo bar
foo
bar
in
replace all
with
bar bar doo
bar
foo
in
replace first
with
foo bar
foo
g
match
with regex
ello
to
uppercase
my variable
0
set
my variable
to
1
change
my variable
by
show variable
my variable
hide variable
my variable
erase all
stamp
Arial
set print font to
24
set print font size to
set print font color to
700
set print font weight to
turn print font italics
on
Foobars are yummy
0
0
print
on x:
y:
data:image/png;base64,
preloaded image
preload image
as
preloaded image
unload image
data:image/png;base64,
0
0
draw image
at x:
y:
data:image/png;base64,
0
0
64
64
90
draw image
at x:
y:
width:
height:
pointed at:
data:image/png;base64,
0
0
64
64
0
0
100
100
90
draw image
at x:
y:
width:
height:
cropping from x:
y:
width:
height:
pointed at:
0
0
10
10
use
to draw a square on x:
y:
width:
height:
-43.30127018922194
-24.999999999999996
43.30127018922194
-24.999999999999996
3.061616997868383e-15
50
draw triangle
with fill
-35.35533905932737
-35.35533905932738
35.35533905932738
-35.35533905932737
35.35533905932738
35.35533905932737
-35.35533905932737
35.35533905932738
draw quadrilateral
with fill
[-20, 20, 20, 20, 0, -20]
draw polygon from points
with fill
pen down
pen up
set pen color to
color
10
change pen
by
color
50
set pen
to
1
change pen size by
1
set pen size to
1
LEGACY - set pen shade to
1
LEGACY - change pen shade by
1
LEGACY - set pen color to
1
LEGACY - change pen color by
pen is down?
color
pen
0
0
draw dot at
0
0
10
10
draw line from
to
Sprite1
stamp
stamp pen square
costume1
stamp pen square with the texture of
Width
1
set pen square's
to
Width
get pen square's
tint pen square to
reset square Attributes
1
red tint
1
set triangle point
's
to
red tint
1
set triangle's
to
1
tint triangle point
to
tint triangle to
1
red tint
get triangle point
's
reset triangle attributes
0
0
10
10
10
0
draw triangle between
,
and
0
0
10
10
10
0
costume1
draw textured triangle between
,
and
with the texture
0
0
100
red
green
blue
0
100
100
hue
saturation
value
128
128
Image
add blank image that is
and the size of
,
named
to Pen+ Library
Image
https://extensions.turbowarp.org/dango.png
add image named
from
to Pen+ Library
Image
remove image named
from Pen+ Library
Image
does
exist in Pen+ Library
costume1
get data uri for costume
width
no pen+ costumes!
get the
of
in pen+ costume library
1
1
no pen+ costumes!
set pixel
's color to
in
1
1
no pen+ costumes!
get pixel
's color in
no pen+ costumes!
get data uri of
in the pen+ costume library
shaders in project
none yet
0
0
10
10
10
0
draw triangle using
between
,
and
none yet
draw square using
Uniform
none yet
costume1
set texture
in
to
Uniform
none yet
0
set number
in
to
Uniform
none yet
0
0
set vector 2
in
to
Uniform
none yet
0
0
0
set vector 3
in
to
Uniform
none yet
0
0
0
0
set vector 4
in
to
Uniform
none yet
set matrix
in
to
Uniform
none yet
[0,0,0,0]
set matrix
in
to
Uniform
none yet
No cubemaps yet!
set cubemap
in
to
Uniform
none yet
get value of number
in
x
Uniform
none yet
get value of
in vector 2
in
x
Uniform
none yet
get value of
in vector 3
in
x
Uniform
none yet
get value of
in vector 4
in
Uniform
none yet
get value of matrix
in
as an array
Uniform
none yet
get the texture of
in
Uniform
none yet
get the cubemap of
in
1
Uniform
none yet
0
set item
in number array
in
to
1
Uniform
none yet
0
0
set item
in vector 2 array
in
to
1
Uniform
none yet
0
0
0
set item
in vector 3 array
in
to
1
Uniform
none yet
0
0
0
0
set item
in vector 4 array
in
to
1
Uniform
none yet
get item
's value in number array
in
1
x
Uniform
none yet
get item
's
value in vector 2 array
in
1
x
Uniform
none yet
get item
's
value in vector 3 array
in
1
x
Uniform
none yet
get item
's
value in vector 4 array
in
attribute
1
none yet
1
set number attribute
of point
in
to
attribute
1
none yet
1
1
set vector 2 attribute
of point
in
to
attribute
1
none yet
1
1
1
set vector 3 attribute
of point
in
to
attribute
1
none yet
1
1
1
1
set vector 4 attribute
of point
in
to
Name
costume1
costume1
costume1
costume1
costume1
costume1
create cubemap named
from left
right
back
front
bottom
top
Image
does
exist as a cubemap
Image
remove cubemap named
draw solid triangles from list
costume1
draw textured triangles from list
using
none yet
draw shader triangles from list
using
0
0
10
10
10
0
define solid tri
,
and
0
0
10
10
10
0
0
0
1
0
1
1
define textured tri
,
and
with the uv's
,
and
depth value
1
0
tri definition here
set the
of point
to
in
render texture
create render texture named
render texture
128
128
create render texture named
of size
render texture
remove render texture named
render texture
does render texture named
exist?
render textures
Scratch Stage
render tris and squares to
No Render Textures Yet!
clear pen from
Pen+ version
triangles drawn
data uri of pen layer
neither way
hide triangles that turn
Closest
set texture filter mode to
allow 'Corner Pinch < 1'
on
turn advanced setting
Erase Depth
Pen+ Costumes
!
set the prefix for
to
Motion
Looks
Sound
Events
Control
Sensing
Help Manual
Operators
Variables
Make a Variable
Variables for all sprites
Lists
Make a List
My Blocks
Make a Block
Pen
Pen+ V7
Open Documentation
Pen Properties
Square Pen Blocks
Triangle Blocks
Color
Images
Advanced
Custom Shaders
Shader Editor
Shader Manager
Cubemaps
List Based Rendering
Render Textures
Extras
Backpack
Sprite
x
y
Show
Size
Direction
Sprite1
duplicate
export
delete
Stage
Backdrops
1
delete
delete
delete
delete