ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* My own backgroundcolor in a frame
@ 2019-03-08 15:43 Ursula Hermann
  2019-03-08 16:20 ` juh
  0 siblings, 1 reply; 2+ messages in thread
From: Ursula Hermann @ 2019-03-08 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 639 bytes --]

Dear List!

I have the following example:

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black ,
   offset=2mm,
   align=flushleft]

My problem is now:
how can I write,  if I have an Rgb Color and I do not know the name. I have looked at the  list, but cannot  find the color.
Can I say: background=color, backgroundcolor=rgb and put the numbers in (lets say: r=200, g=112, b=300)?
Is that correct, or do I have to take a special way? Or do I have to define it?

Many thanks and regards

Uschi Hermann

[-- Attachment #1.2: Type: text/html, Size: 3200 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: My own backgroundcolor in a frame
  2019-03-08 15:43 My own backgroundcolor in a frame Ursula Hermann
@ 2019-03-08 16:20 ` juh
  0 siblings, 0 replies; 2+ messages in thread
From: juh @ 2019-03-08 16:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am Fri, Mar 08, 2019 at 03:43:20PM +0000 schrieb Ursula Hermann:
> Dear List!
> 
> I have the following example:
> 
> \defineframedtext
>   [prettyblock]
>   [width=10cm,
>    indenting={yes, small},
>    background=color, backgroundcolor=lightgreen,
>    foreground=color, foregroundcolor=black ,
>    offset=2mm,
>    align=flushleft]
> 
> My problem is now:
> how can I write,  if I have an Rgb Color and I do not know the name. I have looked at the  list, but cannot  find the color.
> Can I say: background=color, backgroundcolor=rgb and put the numbers in (lets say: r=200, g=112, b=300)?
> Is that correct, or do I have to take a special way? Or do I have to define it?

I would define a color and use it:

\definecolor  [myblue]   [r=0.000, g=0.314, b=0.580]

You can use the color anywhere with "color=myblue".

juh

-- 
Autoren-Homepage: ......... http://literatur.hasecke.com
Satiren & Essays: ......... http://www.sudelbuch.de
Privater Blog: ............ http://www.hasecke.eu
Netzliteratur-Projekt: .... http://www.generationenprojekt.de


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-08 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 15:43 My own backgroundcolor in a frame Ursula Hermann
2019-03-08 16:20 ` juh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).