1 <!-- This file is part of Shapes. -->
3 <!-- Shapes is free software: you can redistribute it and/or modify -->
4 <!-- it under the terms of the GNU General Public License as published by -->
5 <!-- the Free Software Foundation, either version 3 of the License, or -->
6 <!-- any later version. -->
8 <!-- Shapes is distributed in the hope that it will be useful, -->
9 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
10 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
11 <!-- GNU General Public License for more details. -->
13 <!-- You should have received a copy of the GNU General Public License -->
14 <!-- along with Shapes. If not, see <http://www.gnu.org/licenses/>. -->
16 <!-- Copyright 2008, 2009 Henrik Tidefelt -->
18 <section id="types/graphics-2d">
19 <title>Graphics in <str-2D /></title>
21 <p>Values of the types described here can be drawn (possibly after projection to <str-2D />).</p>
24 <coretype name="Drawable">
26 <p>This is the common base type of drawable things in <str-2D />.</p>
30 <coretype name="RasterImage">
31 <isa><named-type name="Drawable" /></isa>
33 <p>Rasterized image.</p>
36 <type-field name="size_x">
37 <type><named-type name="Integer" /></type>
38 <description>Width in pixels.</description>
40 <type-field name="size_y">
41 <type><named-type name="Integer" /></type>
42 <description>Width in pixels.</description>
44 <type-field name="depth">
45 <type><named-type name="Integer" /></type>
46 <description>Bits per color component.</description>
48 <type-field name="space">
49 <type><named-type name="ColorSpace" /></type>
50 <description>Color space.</description>
55 <coretype name="CapStyle">
57 <p>The type for <dynamic namespace="..Shapes..Traits" name="cap" />.</p>
61 <coretype name="JoinStyle">
63 <p>The type for <dynamic namespace="..Shapes..Traits" name="join" />.</p>
67 <coretype name="Dash">
69 <p>The type for <dynamic namespace="..Shapes..Traits" name="dash" />.</p>
72 <p>The total length of the dash pattern can be obtained using <value namespace="..Shapes..Numeric..Math" name="abs" />.</p>
76 <coretype name="Alpha">
78 <p>The type of values produced by <value namespace="..Shapes..Traits" name="alphashape" /> and <value namespace="..Shapes..Traits" name="alphaopacity" />, to be used with <dynamic namespace="..Shapes..Traits" name="strokingalpha" /> and <dynamic namespace="..Shapes..Traits" name="nonstrokingalpha" />.</p>
82 <coretype name="ColorSpace">
84 <p>A parameterization of colors.</p>
87 <dynamic namespace="..Shapes..Traits" name="blend" />