Figure primitive

Le figure primitive che possono essere disegnate immediatamente da CFDG sono SQUARE, CIRCLE e TRIANGLE cioè quadrato, cerchio e triangolo

startshape FIGUREBASE1

shape FIGUREBASE1
{
   SQUARE   [    ]
   CIRCLE   [x -1]
   TRIANGLE [x  1]
}

Il cerchio è traslato verso sinistra e il triangolo verso destra tramite il parametro x.

Si possono alterare altri parametri, come brightness

startshape FIGUREBASE2

shape FIGUREBASE2
{
   SQUARE   [                      ]
   CIRCLE   [ x -1 brightness 0.33 ]
   TRIANGLE [ x +1 brightness 0.66 ]
}

Per confrontare le dimensioni delle figure puoi sovrapporle a due a due

startshape FIGUREBASE

shape FIGUREBASE
{
    FIGUREBASE12 [ x -1.5 ]
    FIGUREBASE13 [ x 0 ]
    FIGUREBASE23 [ x +1.5 ]
}

shape FIGUREBASE12
{
    SQUARE [ brightness 0.0 ]
    CIRCLE [ brightness 0.33 ]
}
shape FIGUREBASE13
{
    SQUARE [ brightness 0.0 ]
    TRIANGLE [ brightness 0.66 ]
}
shape FIGUREBASE23
{ 
    CIRCLE [ brightness 0.33 ]
    TRIANGLE [ brightness 0.66 ]
}

oppure tutte insieme

startshape FIGUREBASE3

shape FIGUREBASE3
{
   SQUARE   [ brightness 0.0  ]
   CIRCLE   [ brightness 0.33 ]
   TRIANGLE [ brightness 0.66 ]
}

La figure primitive, senza alterazioni dei parametri, sono disegnate con

  • colore nero opaco
  • diametro del cerchio, lato del quadrato e lato del triangolo uguali
  • centri coincidenti.

Cioè

size       1 1
rotation   0
skew       0 0
flip           // non applicato
hue        0
saturation 0
brightness 0
alpha      1

Lascia un commento