I just realized that you can also specify rgb() using %'s, at least in <stylesheet> (but apparently not as a direct parameter, which is a bug):

<canvas>
  <stylesheet>
    view { bgcolor: rgb(97%,89%,59%) }
  </stylesheet>
  <simplelayout axis="x" spacing="10"/>
<class name="box1" width="100" height="100" bgcolor="$style{'bgcolor'}"/>
  <class name="box2" width="100" height="100" bgcolor="iceblue1"/>
  <box1 id="sun">
    <text text="Sun"/>
  </box1>
  <box2 id="mystic">
    <text fgcolor="0xFFFFFF" text="Mystic"/>
  </box2>
</canvas>

Also, while poking around, I realized that colors.lzx is just a teeny snippet, probably just created for a demo. And, our names do not appear to correspond to any of the 'standard' named colors. It looks like the names were copied from the X11 color list, but then totally different values were used for the colors!

I found this interesting concordance:  http://xona.com/colorlist/

On 2008-11-18, at 09:22EST, Lou Iorio wrote:

Change 20081118-lou-3 by [EMAIL PROTECTED] on 2008-11-18 10:15:58 AST
   in /Users/lou/src/svn/openlaszlo/trunk
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: dguide: Color chapter changes/addition

Bugs Fixed: LPP-7363

Technical Reviewer: tucker
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: changes listed in previous comment

Tests: visual verify, test examples in SWF8, SWF9, and DHTML

Files:
M      docs/src/developers/colors.dbk
A      docs/src/developers/programs/colorswatch.lzx
M      docs/src/developers/programs/color-$4.lzx


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20081118-lou-3.tar

Reply via email to