color for seaside

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

color for seaside

Tudor Girba-2
Hi Cyrille,

I saw that you added a GLMColor to provide an abstract representation of a Color both for Morphic and for CSS. It's good that you are tackling this problem, but this is not the way to go.

The problem is that it is confusing to have to provide a new GLMColor class for every special color.  Color is already a full and quite powerful description of a color.

What we need is a convertor. There already are a few:
- Color>>printHtmlString (in the base image)
- Color>>asJavascript (in the Seaside image)

The only thing that is currently missing is a proper translation of "Color transparent", but this can be done easily in a Color>>glmAsHtmlColor.

Cheers,
Doru


--
www.tudorgirba.com

"Not knowing how to do something is not an argument for how it cannot be done."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: color for seaside

cdelaunay
Haha ok :) So I will go that way !

2011/7/14 Tudor Girba <[hidden email]>
Hi Cyrille,

I saw that you added a GLMColor to provide an abstract representation of a Color both for Morphic and for CSS. It's good that you are tackling this problem, but this is not the way to go.

The problem is that it is confusing to have to provide a new GLMColor class for every special color.  Color is already a full and quite powerful description of a color.

What we need is a convertor. There already are a few:
- Color>>printHtmlString (in the base image)
- Color>>asJavascript (in the Seaside image)

The only thing that is currently missing is a proper translation of "Color transparent", but this can be done easily in a Color>>glmAsHtmlColor.

Cheers,
Doru


--
www.tudorgirba.com

"Not knowing how to do something is not an argument for how it cannot be done."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev