Removed shapes, fixes #69
This commit is contained in:
parent
8f54f954d2
commit
b694d6c8db
@ -16,7 +16,7 @@ body { margin:0px; padding:0px; overflow:hidden; font-family:"input_mono_regular
|
||||
#ronin.hidden canvas#surface, #ronin.hidden canvas#guide { left:0; }
|
||||
|
||||
#ronin.hidden #wrapper #commander { margin-left:calc(-40vw - 30px); }
|
||||
#ronin canvas#surface,#ronin canvas#guide { left:40vw; }
|
||||
#ronin canvas#surface,#ronin canvas#guide { left:calc(40vw + 30px); }
|
||||
|
||||
#ronin canvas#guide { background:none; }
|
||||
#ronin canvas#surface { border-radius: 2px }
|
||||
|
@ -82,7 +82,7 @@ function Surface (ronin) {
|
||||
} else if (isSvg(shape)) {
|
||||
this.traceSVG(shape, context)
|
||||
} else {
|
||||
console.warn('Unknown type')
|
||||
console.warn('Unknown type', shape)
|
||||
}
|
||||
}
|
||||
|
||||
@ -236,18 +236,18 @@ function Surface (ronin) {
|
||||
}
|
||||
|
||||
function isRect (shape) {
|
||||
return shape.x && shape.y && shape.w && shape.h
|
||||
return !isNaN(shape.x) && !isNaN(shape.y) && !isNaN(shape.w) && !isNaN(shape.h)
|
||||
}
|
||||
function isCircle (shape) {
|
||||
return shape.cx && shape.cy && shape.r
|
||||
return !isNaN(shape.cx) && !isNaN(shape.cy) && !isNaN(shape.r)
|
||||
}
|
||||
function isSvg (shape) {
|
||||
return shape.d
|
||||
}
|
||||
function isText (shape) {
|
||||
return shape.x && shape.y && shape.p && shape.t && shape.f
|
||||
return !isNaN(shape.x) && !isNaN(shape.y) && !isNaN(shape.p) && shape.t && shape.f
|
||||
}
|
||||
function isLine (shape) {
|
||||
return shape.a && shape.a.x && shape.a.y && shape.b && shape.b.x && shape.b.y
|
||||
return shape.a && !isNaN(shape.a.x) && !isNaN(shape.a.y) && shape.b && !isNaN(shape.b.x) && !isNaN(shape.b.y)
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,4 @@
|
||||
; saturate image
|
||||
|
||||
(open "../static/crystal.jpg")
|
||||
(pixels
|
||||
(frame)
|
||||
saturation
|
||||
12)
|
||||
(frame) saturation 12)
|
Loading…
x
Reference in New Issue
Block a user