[Laszlo-dev] dguide: color chapter
Lou Iorio
lou at louiorio.com
Mon Nov 17 15:34:38 PST 2008
Since there were no objections, I will implement changes 1 and 3. I'll
keep
#2, but simplify it as noted; it's pretty basic stuff, but marginally
useful.
On Nov 14, 2008, at 2:18 PM, Lou Iorio wrote:
> I'd like to make a couple of changes to the dguide:
>
> 1. Remove Example 20.2. Using Hex for colors with stylesheet, and
> the text that introduces it.
> The next live example describes the very same subject.
>
> 2. Simplify Example 20.5. Blending Colors. It now uses a resizable
> window and lots of constraints,
> and it's hard to see the point of the example. Here is what we have
> now:
>
> <canvas height="850">
> <window name="raptor" x="25" y="50" height="200" width="200"
> resizable="true" title="Resize this window">
> <view name="red" height="${raptor.height*.5}" width="$
> {raptor.height*.5}" bgcolor="0xFF0000"/>
> <view name="blue" height="${raptor.red.height}" width="$
> {raptor.red.width}" bgcolor="0x0000FF" x="${raptor.red.width
> (raptor.red.width*.5)}" y="${raptor.red.height-
> (raptor.red.height*.5)}"/>
> <view name="fuchsia" height="${raptor.red.height*.5}" width="$
> {raptor.red.width*.5}" bgcolor="0xFF00FF"
> x="${raptor.red.width-(raptor.red.width*.5)}"
> y="${raptor.red.height-(raptor.red.height*.5)}"/>
> </window>
> </canvas>
>
> The point of this section could made like this:
>
> <canvas height="850">
> <view name="red" height="100" width="100" bgcolor="0xFF0000"/>
> <view name="blue" x="50" y="50" height="100" width="100"
> bgcolor="0x0000FF"/>
> <view name="fuchsia" x="50" y="50" height="50" width="50"
> bgcolor="0xFF00FF"/>
> </canvas>
>
> In my opinion, this example could be dropped altogether; it's pretty
> basic stuff.
>
> 3. Remove section 4. When Red Isn't Red. I don't think there's any
> useful information here.
>
> Objections or comments?
>
> Lou
More information about the Laszlo-dev
mailing list