input/output + refactoring

This commit is contained in:
klemek
2020-12-16 19:00:40 +01:00
parent eeaf611158
commit 1a70942e8e
23 changed files with 1272 additions and 52 deletions
+35
View File
@@ -0,0 +1,35 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" baseProfile="full"
width="300" height="300" viewBox="0 0 300 300">
<!-- <g style="stroke:rgb(0,0,255);stroke-width:2"> -->
<!-- <line x1="0" y1="0" x2="500" y2="0"/> -->
<!-- <line x1="0" y1="100" x2="500" y2="100"/> -->
<!-- <line x1="0" y1="200" x2="500" y2="200"/> -->
<!-- <line x1="0" y1="300" x2="500" y2="300"/> -->
<!-- <line x1="0" y1="400" x2="500" y2="400"/> -->
<!-- <line x1="0" y1="500" x2="500" y2="500"/> -->
<!-- <line y1="0" x1="0" y2="500" x2="0"/> -->
<!-- <line y1="0" x1="100" y2="500" x2="100"/> -->
<!-- <line y1="0" x1="200" y2="500" x2="200"/> -->
<!-- <line y1="0" x1="300" y2="500" x2="300"/> -->
<!-- <line y1="0" x1="400" y2="500" x2="400"/> -->
<!-- <line y1="0" x1="500" y2="500" x2="500"/> -->
<!-- </g> -->
<!-- <g style="stroke:rgb(255,0,0);stroke-width:1"> -->
<!-- <line x1="0" y1="50" x2="500" y2="50"/> -->
<!-- <line x1="0" y1="150" x2="500" y2="150"/> -->
<!-- <line x1="0" y1="250" x2="500" y2="250"/> -->
<!-- <line x1="0" y1="350" x2="500" y2="350"/> -->
<!-- <line x1="0" y1="450" x2="500" y2="450"/> -->
<!-- <line y1="0" x1="50" y2="500" x2="50"/> -->
<!-- <line y1="0" x1="150" y2="500" x2="150"/> -->
<!-- <line y1="0" x1="250" y2="500" x2="250"/> -->
<!-- <line y1="0" x1="350" y2="500" x2="350"/> -->
<!-- <line y1="0" x1="450" y2="500" x2="450"/> -->
<!-- </g> -->
<g style="stroke:black;stroke-width:20;fill:white">
<path d="M 50 50 H 250 V 250 H 50 Z" />
</g>
<!-- <g style="stroke:none;fill:green"> -->
<!-- <circle cx="150" cy="150" r="40"/> -->
<!-- </g> -->
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+55
View File
@@ -0,0 +1,55 @@
fileFormatVersion: 2
guid: f07dabfc64de02443a6df7363e4f1171
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
svgType: 0
texturedSpriteMeshType: 0
svgPixelsPerUnit: 100
gradientResolution: 64
alignment: 1
customPivot: {x: 0, y: 0}
generatePhysicsShape: 1
viewportOptions: 1
preserveViewport: 0
advancedMode: 0
predefinedResolutionIndex: 1
targetResolution: 1080
resolutionMultiplier: 1
stepDistance: 10
samplingStepDistance: 100
maxCordDeviationEnabled: 0
maxCordDeviation: 1
maxTangentAngleEnabled: 0
maxTangentAngle: 5
keepTextureAspectRatio: 1
textureSize: 256
textureWidth: 256
textureHeight: 256
wrapMode: 0
filterMode: 1
sampleCount: 4
preserveSVGImageAspect: 0
useSVGPixelsPerUnit: 0
spriteData:
TessellationDetail: 0
SpriteRect:
name:
originalName:
pivot: {x: 0, y: 0}
alignment: 0
border: {x: 0, y: 0, z: 0, w: 0}
rect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
spriteID: 5931624e128cb9949b82b084dcbe49ca
internalID: 0
PhysicsOutlines: []
+35
View File
@@ -0,0 +1,35 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" baseProfile="full"
width="300" height="300" viewBox="0 0 300 300">
<!-- <g style="stroke:rgb(0,0,255);stroke-width:2"> -->
<!-- <line x1="0" y1="0" x2="500" y2="0"/> -->
<!-- <line x1="0" y1="100" x2="500" y2="100"/> -->
<!-- <line x1="0" y1="200" x2="500" y2="200"/> -->
<!-- <line x1="0" y1="300" x2="500" y2="300"/> -->
<!-- <line x1="0" y1="400" x2="500" y2="400"/> -->
<!-- <line x1="0" y1="500" x2="500" y2="500"/> -->
<!-- <line y1="0" x1="0" y2="500" x2="0"/> -->
<!-- <line y1="0" x1="100" y2="500" x2="100"/> -->
<!-- <line y1="0" x1="200" y2="500" x2="200"/> -->
<!-- <line y1="0" x1="300" y2="500" x2="300"/> -->
<!-- <line y1="0" x1="400" y2="500" x2="400"/> -->
<!-- <line y1="0" x1="500" y2="500" x2="500"/> -->
<!-- </g> -->
<!-- <g style="stroke:rgb(255,0,0);stroke-width:1"> -->
<!-- <line x1="0" y1="50" x2="500" y2="50"/> -->
<!-- <line x1="0" y1="150" x2="500" y2="150"/> -->
<!-- <line x1="0" y1="250" x2="500" y2="250"/> -->
<!-- <line x1="0" y1="350" x2="500" y2="350"/> -->
<!-- <line x1="0" y1="450" x2="500" y2="450"/> -->
<!-- <line y1="0" x1="50" y2="500" x2="50"/> -->
<!-- <line y1="0" x1="150" y2="500" x2="150"/> -->
<!-- <line y1="0" x1="250" y2="500" x2="250"/> -->
<!-- <line y1="0" x1="350" y2="500" x2="350"/> -->
<!-- <line y1="0" x1="450" y2="500" x2="450"/> -->
<!-- </g> -->
<g style="stroke:black;stroke-width:20;fill:white">
<circle cx="150" cy="150" r="100"/>
</g>
<!-- <g style="stroke:none;fill:green"> -->
<!-- <circle cx="150" cy="150" r="40"/> -->
<!-- </g> -->
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+55
View File
@@ -0,0 +1,55 @@
fileFormatVersion: 2
guid: 1cd7455285f8d7046ad9fdc6cd1feb1c
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
svgType: 0
texturedSpriteMeshType: 0
svgPixelsPerUnit: 100
gradientResolution: 64
alignment: 1
customPivot: {x: 0, y: 0}
generatePhysicsShape: 1
viewportOptions: 1
preserveViewport: 0
advancedMode: 0
predefinedResolutionIndex: 1
targetResolution: 1080
resolutionMultiplier: 1
stepDistance: 10
samplingStepDistance: 100
maxCordDeviationEnabled: 0
maxCordDeviation: 1
maxTangentAngleEnabled: 0
maxTangentAngle: 5
keepTextureAspectRatio: 1
textureSize: 256
textureWidth: 256
textureHeight: 256
wrapMode: 0
filterMode: 1
sampleCount: 4
preserveSVGImageAspect: 0
useSVGPixelsPerUnit: 0
spriteData:
TessellationDetail: 0
SpriteRect:
name:
originalName:
pivot: {x: 0, y: 0}
alignment: 0
border: {x: 0, y: 0, z: 0, w: 0}
rect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
spriteID: f580062f276d0f24f8627b501ab28b90
internalID: 0
PhysicsOutlines: []