standard.size

description

Resizes the element to a width of width pixels and a height of height pixels.

syntax

getX(ELEMENT_NAME).size(width, height)

What does getX() mean?

  • width :
  • height :

example(s)


@newImage("smiley", "pear.png")
$    .size(40, 40)
@    .print()
  • Adds a 40x40px image pear.png onto the screen.