Skip to content
Hunter Close edited this page Aug 14, 2018 · 10 revisions

Making Text

quotes block

Use the quotes block to create a string of text.

Examples:

quote letters

quote numbers

Printing Text

print

The print block includes an empty "shadow block" because a program without it would result in an error. The shadow block can be directly edited, or it can be replaced with a real quotes block or a different kind of block.

Examples:

print words

prints: Ahoy, matey!


print numbers

prints: 3 + 5


print actual addition

prints: 8


print a vector

prints: <0, 2, 0>


print vector attribute

prints: <0, 2, 0>


Shapes cannot be printed, but the data in their attributes usually can. A shape block will be rejected when the user attempts to connect it to a print block.

GlowScript help for print

print inline

The print inline block allows the user to print several pieces of data on one line.

Example:

print inline

prints: The radius of the ball is 0.5 meters.

Clone this wiki locally