Besides elementary drawing operations for lines, polygons, and circles, CindyScript also offers the possibility to combine these objects into more complicated objects called shapes. Shapes are not directly visible, but may be used for filling, outline drawing or clipping. They can be combined using logical operations like union, intersection or set difference. We first list the elementary operators and then explain their usage in a more elaborate example.

Shape primitives

A circular shape: circle(<point>,<radius>)

Description: This operator creates a circular shape of a given <radius> around a given <point>.

A polygonal shape: polygon(<list>)

Description: This operator creates a polygonal shape defined by a list of positions given in <list>.

A half-plane shape: halfplane(<line>,<point>)

Description: This operator creates a half-plane shape. The half-plane is defined by its supporting line <line> and a point <point> contained in the half-plane, which determines on which side of the supporting line the half-plane lies. <line> may either be a three-dimensional vector of homogeneous coordinates, or a reference to a line object.

The shape of the screen: screen()

Description: This operator creates a rectangular shape that is large enough to cover all active drawing surfaces.

Combining shapes

Primitive shapes can be combined to form new shapes using three logical operators.

<shape1>++<shape2> creates the union of two shapes
<shape1>~~<shape2> creates the intersection of two shapes
<shape1>--<shape2> creates the difference of two shapes

Using shapes

Shapes can be used for filling, outline drawing and clipping.

Fill a shape: fill(<shape>)

Description: This operator fills a shape with a specified color.

Modifiers: This operator supports the following modifiers:

color[<real1>,<real2>,<real3>]sets the fill color to an RGB value
alpha<real>sets the opacity to the value <alpha>

Draw a shape: draw(<shape>)

Description: This operator draws the outline of a shape.

Modifiers: This operator is a further polymorphic extension to the usual draw operator and supports the same modifiers.

Set clippath: clip(<shape>)

Description: This operator sets the clip path to the given shape. All subsequent drawing operations are clipped with respect to this clip path. The clip path is pushed on the appearance stack, thus it can be removed again by statements like grestore() or greset().


The following examples illustrate the use of shapes. The following code defines three different shapes, a quadratic one and two circular ones. These are then combined into a more complex shape using logical operations. The complex shape is filled and outlined. The original shapes are outlined by a thinner line.


The resulting image is shown as the first picture below. The other three images are created using other combinations of the shapes.


The following code snippet demonstrates the usage of shapes as a clipping path. First of all, four circles and their union are defined as a shape. Then this shape is used as a clipping path for another drawing (concentric circles around point E).


Shapes can become rather complicated objects, as the following iterative example shows. A word of caution may be appropriate here: The more complicated shape become, the more computational resources they consume. The use of overly complex shapes can slow down Cinderella considerably.


Contributors to this page: admin , Kortenkamp and Richter .
Page last modified on Sunday 02 of July, 2023 [08:45:52 UTC] by admin.

The content on this page is licensed under the terms of the License.

free viagra samplehentai girlsmature pussymilfseeker cialis samplescam clip movie nude webcammother incest order viagra online cialis ukanime rapeparis hilton phone numbers viagra alternatives cialis forum cialis free samplehot girls in pantiesmonster of cocks discount cialis cilias free viagra samplesfree chat rooms cilia structurefree cartoon sex comics buy cialis order viagrafree adult videosplump girl gallerypantyhose gallerycum on her face cheapest cialisbisexual moviestampa bukakehuge black cock thumbnails buy cialis onlineporn star cialis drugwomen having sex cheap generic viagra alternative to viagra natural viagra cheap viagraoral sexteen webcam strip videosnude spanish girlserotic sex cams movies viagra side effectscartoon adultdisney sex animenude blonde hairygang bang swinger cialis viagrabisexual free moviesgay twinkswebcam chat live xxxyoung teens order cialislatina girls thongscum loversjapanese girl viagra cheapyoung japanese girlsmr chews asian beavergangbang squadshoshone indiansmature wiveslive webcam chat girlsfree ebony viagra on lineasian ladyboysteen boys viagra pillsself bondage techniques cailisincest familyfree ebony cheap cialisgay amateur cialis genericbusty asian viagra onlinemature breasts viagra for women free viagrabig boobies cialis generic viagragloryhole gaylatinas in thongs female viagraindian tits viagra 6 free samplesamateur upskirt viagra alternativefree xxx video cialis online discountgalleries of teen girls cialis dosage cheap generic cialisparis hilton pornopussy cat dollsbrutal sexgay peopleblack milfsno tits discount viagrablonde hairy pussyshemale animefree hardcore moviesmom strips for sonfat titscelebrity legsdouble anal levitra vs cialis cialis tadalafil cialis cheapgay bdsmcelebrities exposed viagra generic alternatives to viagra viagra canadabestialitypink porn stars viagra jokesclips of teen sexchicks suck horse cock online viagrasex with horsespainful analglory holes floridafree american bukkake cialis online buy viagrabig cock cum free cialisteen gay porn cialis side effects herbal viagra best price viagra purchase cialis cialis soft tabs cialis vs viagrafree fat girl webcamfree porn movie clipsoral penis suckingebony hardcore viagra pricepantyhose crossed legs cialis and levitralesbiennesblonde boobs buy viagra online