r = blendColors("cyan","magenta", noise) -- Should give
a blended color
local mixedColor = blendColors(c5, c6, noise) -- Should give a blended color
setbytemap(i,
x, y,
(mixedColor[1]), (mixedColor[2]), (mixedColor[3])
)
end
end
end
\stopluacode
\usecolors[crayola]
\defi
a of how to use palettes:
https://github.com/adityam/visualcounter/blob/master/visualcounter.pdf
Effectively all you need to do is add \setuppalet[name] at an appropriate
place, and then the user can easily change the colors (rather than having them
specified as par
Pablo Rodriguez schrieb am 27.04.2019 um 16:07:
I found this code in ConTeXt (syst-aux.mkiv):
\starttext
\doloopoverlist {red,green,blue} {
\setuppalet[\recursestring]
\doloopoverlist {light,normal,dark} {
\blackrule[color=\recursestring, width
red,green,blue} {
\setuppalet[\recursestring]
\doloopoverlist {light,normal,dark} {
\blackrule[color=\recursestring, width=\textwidth]\par
}
}
\stoptext
Is it intended that all nine lines are black?
Many thanks for your help,
Pablo
--
http:
Pablo Rodriguez schrieb am 27.04.2019 um 13:25:
On 4/27/19 12:21 PM, Wolfgang Schuster wrote:
Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
\definepalet[layout][grid=black]
\setuppalet
[layout]
[grid=black]
Many thanks, Marcus Vinicius and Wolfgang, for your replies.
This
On 4/27/19 12:21 PM, Wolfgang Schuster wrote:
> Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
>> \definepalet[layout][grid=black]
> \setuppalet
> [layout]
> [grid=black]
Many thanks, Marcus Vinicius and Wolfgang, for your replies.
This is the only way it works:
Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
\definepalet[layout][grid=black]
\setuppalet
[layout]
[grid=black]
Wolfgang
___
If your question is of interest to others as well, please add an entry
]
\definepalet [colorful] [primary=green]
\definepalet [bleak] [primary=darkgray,colorful]
\starttext
\setuppalet [colorful]
\color[primary]{Ain’t I a colorful entity?}
\setuppalet [bleak]
\color[primary]{Ain’t I a colorful entity?}
\stoptext
i.e. a hidden feature of referencing
ors to gray. Not to
>>> black.
>>> [Log: "color : system gray is global activated"]
>>>
>>>
>>> What is the key to set either "color is color" or "color is black" again?
>>>
>> i don
][ colorone=blue, colortwo=green %,colorthree=red ]\setuppalet[dvb]\showpalet[dvb][]\starttext\color[colorone]{hello} \quad\color[colortwo]{hello} \quad\stoptext
test.pdf
Description: Adobe PDF document
test.pdf
Description: Adobe PDF document
ng some color palettes then? this should work with both
marks.
\definepalet[coloredtext][...]
\setuppalet[coloredtext]
\startmode[black]
\definepalet[blacktext] [red=black, blue=black,...]
\setuppalet[blacktext]
\stopmode
as colorspace info travels indepently you can say
\attribute\colorm
wrong).
how about defining some color palettes then? this should work with both
marks.
\definepalet[coloredtext][...]
\setuppalet[coloredtext]
\startmode[black]
\definepalet[blacktext] [red=black, blue=black,...]
\setuppalet[blacktext]
\stopmode
Best wishes, Peter
> Steffen
>
eup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenum
13 matches
Mail list logo