RE: Help with color

Subject: RE: Help with color
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Mon, 25 Jan 1999 18:24:16 -0500
Hi Ralph,

Thanx for the tip. I now have a more elegant way to define colors.  I'll try
the "background-color" property.

Didier PH Martin
mailto:martind@xxxxxxxxxxxxx
http://www.netfolder.com

-----Original Message-----
From: owner-dssslist@xxxxxxxxxxxxxxxx
[mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of Ralph Ferris
Sent: Monday, January 25, 1999 12:00 PM
To: dssslist@xxxxxxxxxxxxxxxx
Subject: Re: Help with color


At 02:30 AM 1/25/99 -0500, Ken Holmes wrote:
>Can someone try the code below with another back end, please?  I'm curious
>now myself, not having had to do this before, and I don't have any other
>back ends installed.

We've been using the following with HyBrick; it's essentially the same as
Ken's example.

<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(define (rgb r g b)
  (color (color-space "ISO/IEC 10179:1996//Color-Space Family::Device RGB")
r g b))

(define white-color (rgb 1 1 1))
(define veju-color (rgb 0.9 0.9 1))
(define red-color (rgb 1 0 0))
(define green-color (rgb 0 1 0))
(define blue-color (rgb 0 0 1))

(element doc
  (make scroll
    start-margin: 20pt
    background-color: red-color
    ; background-layer: 2  - can be included, but doesn't change display
    ; box-type: 'background - can be included, but doesn't change display


  )
)


HyBrick is available at http://collie.fujitsu.com/HyBrick.


Best regards,

Ralph E. Ferris
Fujitsu Software Corporation


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread