mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Cleaning examples for Beta launch
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* SVGPShape
|
||||
*
|
||||
* How to load an SVG into a PShape
|
||||
*/
|
||||
|
||||
// PShape object
|
||||
PShape svg;
|
||||
|
||||
void setup() {
|
||||
size(640, 360, P2D);
|
||||
smooth();
|
||||
// Load the SVG
|
||||
svg = loadShape("star.svg");
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(255);
|
||||
// Draw PShape at mouse location
|
||||
translate(mouseX, mouseY);
|
||||
shapeMode(CENTER);
|
||||
shape(svg);
|
||||
}
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
<?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://web.resource.org/cc/"
|
||||
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="293.89999"
|
||||
height="282.98001"
|
||||
id="svg2"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.45.1"
|
||||
version="1.0"
|
||||
sodipodi:docbase="/home/uwe/Desktop"
|
||||
sodipodi:docname="star.svg"
|
||||
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2"
|
||||
inkscape:cx="149.41261"
|
||||
inkscape:cy="100"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showguides="false"
|
||||
showgrid="true"
|
||||
height="282.98px"
|
||||
width="293.9px"
|
||||
inkscape:showpageshadow="true"
|
||||
borderlayer="false"
|
||||
showborder="true"
|
||||
inkscape:window-width="872"
|
||||
inkscape:window-height="624"
|
||||
inkscape:window-x="71"
|
||||
inkscape:window-y="47" />
|
||||
<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" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-156.02455,-156.34725)">
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:12.73799992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path2160"
|
||||
sodipodi:sides="5"
|
||||
sodipodi:cx="197.14285"
|
||||
sodipodi:cy="155.21933"
|
||||
sodipodi:r1="50.377609"
|
||||
sodipodi:r2="132.57266"
|
||||
sodipodi:arg1="0.9229849"
|
||||
sodipodi:arg2="1.5513034"
|
||||
inkscape:flatsided="false"
|
||||
inkscape:rounded="3.1225023e-17"
|
||||
inkscape:randomized="0"
|
||||
d="M 227.54285,195.39076 L 199.72692,287.76681 L 168.33167,196.5451 L 71.881232,198.63634 L 148.93656,140.58863 L 117.14285,49.505045 L 196.16091,104.85129 L 272.96175,46.467294 L 244.74227,138.72087 L 324.00151,193.72116 L 227.54285,195.39076 z "
|
||||
transform="matrix(0.8199778,-0.5723954,0.5723954,0.8199778,53.582246,297.32687)" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.6 KiB |
Reference in New Issue
Block a user