Cropping would still work. The cropping code deliberately adds space beyond shape closest to each edge. We could suppress the extra space and crop right to the boundary of the shapes. There would be a little be of extra space when circles or triangles are at the edge since the shape boundary code just assumes everything is a square.
I'm adding a background statement to the next experimental release that lets you change the color/alpha of the canvas background. I was originally going to add color parameters to the startshape parameter list but Mark heaped so much scorn on my idea that I took it out.
MtnViewJohn wrote:Cropping would still work. The cropping code deliberately adds space beyond shape closest to each edge. We could suppress the extra space and crop right to the boundary of the shapes. There would be a little be of extra space when circles or triangles are at the edge since the shape boundary code just assumes everything is a square.
You're right ! Idea : add a nice slider at the top of the window, which will live resize the drawing (the imperfections of the shape boundary code will thus be fixed easily, just by the eyes), and affect "Save image..." and "Render with dimension..." commands.
MtnViewJohn wrote:I'm adding a background statement to the next experimental release that lets you change the color/alpha of the canvas background. I was originally going to add color parameters to the startshape parameter list but Mark heaped so much scorn on my idea that I took it out.
Ho my god he's being bad !
(Sorry, Mark, will you add the slider on the Mac version all the same ?)
(Now that I think of it : when a new window opens, you can't tab to the coding area : you stay in the toolbar. Well, besides that, a new window should actually have focus on the coding area)
startshape SCENE { color }
rule SCENE {
ASHAPE { }
SCENE { x -0.25 y -0.25 s 0.5 alpha -0.2}
SCENE { x -0.25 y 0.25 s 0.5 alpha -0.2}
SCENE { x 0.25 y 0.25 s 0.5 alpha -0.2}
SCENE { x 0.25 y -0.25 s 0.5 alpha -0.2}
}
rule SCENE {
ASHAPE { }
SCENE { x -0.25 y -0.25 s 0.5 alpha -0.1}
SCENE { x -0.25 y 0.25 s 0.5 alpha -0.1}
SCENE { x 0.25 y 0.25 s 0.5 alpha 0.05}
SCENE { x 0.25 y -0.25 s 0.5 alpha -0.01}
}
rule ASHAPE { BSHAPE{hue 100}}
rule ASHAPE { BSHAPE{hue 110}}
rule ASHAPE { BSHAPE{hue 120}}
rule ASHAPE { BSHAPE{hue 130}}
rule ASHAPE { BSHAPE{hue 140}}
rule ASHAPE { BSHAPE{hue 150}}
rule BSHAPE 0.05 { CSHAPE{sat 0}}
rule BSHAPE { CSHAPE{sat 0.7}}
rule BSHAPE { CSHAPE{sat 0.8}}
rule BSHAPE { CSHAPE{sat 0.9}}
rule BSHAPE { CSHAPE{sat 1}}
rule BSHAPE 0.05 { CSHAPE{sat -0.4}}
rule BSHAPE 0.05 { CSHAPE{sat -0.5}}
rule CSHAPE { DSHAPE {}}
rule CSHAPE { DSHAPE{alpha -0.7}}
rule CSHAPE { DSHAPE{alpha -0.8}}
rule CSHAPE { DSHAPE{alpha -0.9}}
rule CSHPAE { DSHAPE{alpha 0.5}}
rule DSHAPE { ESHAPE{s 1 0.8} }
rule DSHAPE { ESHAPE{s 0.8 1} }
rule DSHAPE { ESHAPE{s 0.9 0.5} }
rule DSHAPE { ESHAPE{s 0.8 0.7} }
rule DSHAPE { ESHAPE{s 0.8 0.9} }
rule DSHAPE { ESHAPE{s 0.7 1} }
rule ESHAPE 0.05 { FSHAPE{b 0}}
rule ESHAPE 0.09 { FSHAPE{b 0.2}}
rule ESHAPE { FSHAPE{b 0.4}}
rule ESHAPE { FSHAPE{b 0.6}}
rule ESHAPE 0.05 { FSHAPE{b 1}}
rule FSHAPE { GSHAPE { r 3 }}
rule FSHAPE { GSHAPE { r -3 }}
rule FSHAPE { GSHAPE { r 1 }}
rule FSHAPE { GSHAPE { r -1 }}
rule FSHAPE { GSHAPE { r 90 }}
rule FSHAPE { GSHAPE { r -90 }}
rule FSHAPE { GSHAPE { }}
rule GSHAPE { SQUARE { }}
Anyway, there's a problem i don't know how to fix. The file renders nice at 500x500, but while i render it into a bigger image, say 1000x1000, i got a white image with some little grey squares...
Having a slider that changes the border of an image that has already been generated is possible, but tricky. The border is composed of a fixed part and a variable part. The variable part is different for each edge. It would be much easier to have a slider that affects the next generated image but has no affect on the current image, even when you save it.
MtnViewJohn wrote:Having a slider that changes the border of an image that has already been generated is possible, but tricky. The border is composed of a fixed part and a variable part. The variable part is different for each edge. It would be much easier to have a slider that affects the next generated image but has no affect on the current image, even when you save it.
I'm so disappointed !
[troll]John : ask Mark, he uses a Mac and surely knows that live sliders are the thing to do these days...[/troll]