ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Flowcharts
@ 2024-06-28 17:23 Otared Kavian
  2024-06-28 18:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2024-06-28 17:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

A second try…

Hi all,

Is it possible to have different background colors for different cells in flow charts ? 
For instance in the following example, is it possible to have a particular color for each cell ?

Thanks in advance and best regards: Otared

\usemodule[chart]

\starttext

\startFLOWchart[example]
\startFLOWcell 
 \name {flow}
 \location {1,1}
 \text {Flow}
 \connection [rl] {chart}
\stopFLOWcell
\startFLOWcell
 \name {chart}
 \location{2,1}
 \text {Charts}
\stopFLOWcell
\startFLOWcell 
 \name {flow2}
 \location {1,2}
 \text {Chart}
 \connection [rl] {chart}
\stopFLOWcell
\startFLOWcell
 \name {chart2}
 \location{2,2}
 \text {Flow}
\stopFLOWcell
\stopFLOWchart

\FLOWchart[example]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Flowcharts
  2024-06-28 17:23 [NTG-context] Re: Flowcharts Otared Kavian
@ 2024-06-28 18:03 ` Wolfgang Schuster
       [not found]   ` <54133784-A9B8-4E8A-8DA5-9E19374F29EC@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-06-28 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Otared Kavian

Otared Kavian schrieb am 28.06.2024 um 19:23:
> A second try…
>
> Hi all,
>
> Is it possible to have different background colors for different cells in flow charts ?
> For instance in the following example, is it possible to have a particular color for each cell ?

\startFLOWcell[background=color,backgroundcolor=red]
   ...
\stopFLOWcell

Wolfgang

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Flowcharts
       [not found]   ` <54133784-A9B8-4E8A-8DA5-9E19374F29EC@gmail.com>
@ 2024-06-29 17:51     ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-06-29 17:51 UTC (permalink / raw)
  To: Otared Kavian; +Cc: mailing list for ConTeXt users


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

Otared Kavian schrieb am 29.06.2024 um 14:36:
> Thanks Wolfgang !
> I added the hint to the wiki: https://wiki.contextgarden.net/Flow_Charts
>
>
> Out of curiosity, why should one say
> \startFLOWcell[background=color,backgroundcolor=red]
> ...
> \stopFlowcell
>
> while
> \startFLOWcell[backgroundcolor=red]
> …
> \stopFLOWcell
>
> seem to work as well ?
>
> Thanks again and best regards: Otared

You're right, there is no need for "background=color" because each cell 
already has a background color by default.

Wolfgang


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

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

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-06-29 17:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-28 17:23 [NTG-context] Re: Flowcharts Otared Kavian
2024-06-28 18:03 ` Wolfgang Schuster
     [not found]   ` <54133784-A9B8-4E8A-8DA5-9E19374F29EC@gmail.com>
2024-06-29 17:51     ` Wolfgang Schuster

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).