☄️
SpaceTode
  • Introduction
  • Element
  • Properties
  • Data
  • Arguments
  • Rules
  • Diagrams
  • Inputs
  • Outputs
  • Transformations
  • Symmetries
  • Symbols
  • Event Arguments
  • Maybe
  • Point of View
  • Actions
  • Mimic
  • Sub-Elements
  • Blocks
  • Scoping
  • JavaScript
  • Behave
  • Tabs and Spaces
Powered by GitBook
On this page

Was this helpful?

Properties

You can set an element's properties.

element Sand {
    colour "yellow"
}

These are all the in-built properties that can be set:

  • colour

  • emissive (emissive colour of the element)

  • opacity

  • visible (if false, the element will not render in the world)

  • hidden (if true, the element will not appear in the menu)

  • category (determines which menu category to appear in)

  • pour (if true, holding down the mouse button will continue to pour more atoms, default is true)

  • default (if true, this element will be picked by the dropper when you load the page)

Custom Properties

You can create your own properties with the prop keyword:

element Water {
    prop state "liquid"
}
PreviousElementNextData

Last updated 3 years ago

Was this helpful?