TurboWarp requires JavaScript
Consider using
TurboWarp Desktop
if you are afraid of remote JavaScript.
Something went wrong.
Please report
with the information below.
Click here to reset caches (can fix some errors)
Settings
File
Edit
Addons
Advanced
See Project Page
TurboWarp Feedback
Code
Costumes
Sounds
Motion
Looks
Sound
Events
Control
Sensing
Operators
Variables
My Blocks
Pen
Pen+ V7
next backdrop
25
change
color
effect by
0
set
color
effect to
clear graphic effects
backdrop
number
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
space
key pressed
10
when
loudness
>
1
wait
seconds
10
repeat
forever
if
then
if
then
else
wait until
repeat until
while
answer
space
key
pressed?
mouse down?
mouse x
mouse y
loudness
timer
reset timer
current
year
days since 2000
username
+
-
*
/
1
10
pick random
to
50
>
50
<
50
=
and
or
not
mod
round
abs
of
10
move
steps
15
turn
degrees
15
turn
degrees
random position
go to
0
0
go to x:
y:
1
random position
glide
secs to
1
0
0
glide
secs to x:
y:
90
point in direction
mouse-pointer
point towards
10
change x by
0
set x to
10
change y by
0
set y to
if on edge, bounce
set rotation style
left-right
x position
y position
direction
Hello!
2
say
for
seconds
Hello!
say
Hmm...
2
think
for
seconds
Hmm...
think
costume1
switch costume to
next costume
backdrop1
switch backdrop to
10
change size by
100
set size to
%
show
hide
go to
front
layer
1
go
forward
layers
costume
number
size
play sound
until done
start sound
volume
when this sprite clicked
when backdrop switches to
backdrop1
when I receive
message1
message1
broadcast
message1
broadcast
and wait
stop
all
when I start as a clone
myself
create clone of
delete this clone
mouse-pointer
touching
?
touching color
?
color
is touching
?
mouse-pointer
distance to
What's your name?
ask
and wait
set drag mode
draggable
Stage
backdrop #
of
apple
banana
join
1
apple
letter
of
apple
length of
apple
a
contains
?
my variable
0
set
my variable
to
1
change
my variable
by
show variable
my variable
hide variable
my variable
erase all
stamp
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
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
Operators
Variables
Make a Variable
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