Skip to main content

Extra data types and units

Sciter extands built-in JS data types by these:

Data types common with CSS:

  • Length - CSS length units: 12px, 24mm, etc.
  • Duration - duration units: 200ms, 5s, etc.
  • Angle - CSS angle units: 2rad, 90grad, 1trurn (= 360grad), etc.
  • Color - CSS colors: Color.RGB(255,255,255), Color.rgb(1.0,1.0,1.0,0.5), etc.

2D geometry data types:

  • Point - Point(100,100)
  • Size - Size(50,50)
  • Rect - Rect(Point(100,100),Size(50,50))