+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="744.09448819"
- height="1052.3622047"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.4 r9939"
- sodipodi:docname="drawing.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.7"
- inkscape:cx="121.41831"
- inkscape:cy="436.77983"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:window-width="1962"
- inkscape:window-height="1240"
- inkscape:window-x="2718"
- inkscape:window-y="1285"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1">
- <rect
- style="fill:#0caf0c;fill-opacity:1;stroke:#3b3b3b;stroke-width:1.58335221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
- id="0square"
- width="98.416649"
- height="98.416649"
- x="83.827385"
- y="181.54672"
- inkscape:label="#rect2985" />
- <path
- sodipodi:type="arc"
- style="fill:#ff7900;fill-opacity:1;stroke:#3b3b3b;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
- id="0circle"
- sodipodi:cx="556.42859"
- sodipodi:cy="290.21933"
- sodipodi:rx="85"
- sodipodi:ry="85"
- d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
- transform="translate(-124.28571,-85.714286)"
- inkscape:label="#path2987" />
- <path
- transform="translate(-405.71428,218.57143)"
- d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
- sodipodi:ry="85"
- sodipodi:rx="85"
- sodipodi:cy="290.21933"
- sodipodi:cx="556.42859"
- id="0circles0"
- style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
- sodipodi:type="arc"
- inkscape:label="#path2989" />
- <path
- sodipodi:type="arc"
- style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:3.33612041999999986;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;opacity:0.71604937999999996"
- id="0circles1"
- sodipodi:cx="556.42859"
- sodipodi:cy="290.21933"
- sodipodi:rx="85"
- sodipodi:ry="85"
- d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
- transform="matrix(0.74937343,0,0,0.74937343,-104.82992,291.3081)"
- inkscape:label="#path2991" />
- <path
- transform="matrix(0.39849624,0,0,0.39849624,214.6939,393.13944)"
- d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
- sodipodi:ry="85"
- sodipodi:rx="85"
- sodipodi:cy="290.21933"
- sodipodi:cx="556.42859"
- id="0circles2"
- style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:6.27358492000000023;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;opacity:0.28806584000000002"
- sodipodi:type="arc"
- inkscape:label="#path2993" />
- <g
- id="g3767">
- <text
- sodipodi:linespacing="125%"
- id="text3763"
- y="912.59924"
- x="83.155045"
- style="font-size:54.63201141px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
- xml:space="preserve"><tspan
- y="912.59924"
- x="83.155045"
- id="tspan3765"
- sodipodi:role="line">Not to extract</tspan></text>
- </g>
- </g>
-</svg>
+++ /dev/null
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2013 Alexis Laferrière <alexis.laf@xymus.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import drawing
-
-redef class App
-
- var img_set: DrawingImages is noinit
-
- init do super
-
- redef fun on_create
- do
- super
-
- img_set = new DrawingImages
- img_set.load_all(self)
- end
-
- redef fun frame_core( display )
- do
- display.clear(0.2, 0.2, 0.2)
-
- display.blit(img_set.square, 0, 0)
- display.blit(img_set.circle, 100, 100)
- display.blit(img_set.circles[0], 0, 100)
- display.blit(img_set.circles[1], 0, 200)
- display.blit(img_set.circles[2], 0, 300)
- end
-
- redef fun input( ie )
- do
- if ie isa QuitEvent then
- quit = true
- return true
- end
-
- return false
- end
-end