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
or this:
\setuppapersize[A5][A4,landscape]
\setuppaper[nx=2, ny=1, offset=-1.5pt]
\setuparranging[XY]
\definepalet[layout][page=black]
\showframe[page]
\setupbackgrounds[page][topframe=off, bottomframe=off, rulethickness=2pt]
\starttext
\dorecurse{10}{\samp
On 4/27/19 4:34 PM, Wolfgang Schuster wrote:
>> [...]
>> Is it intended that all nine lines are black?
>
> Yes, because there are no predefined palets with the names red, green or
> blue.
>
> \definepalet
> [red]
> [ light=lightred,
> normal=middl
=\textwidth]\par
}
}
\stoptext
Is it intended that all nine lines are black?
Yes, because there are no predefined palets with the names red, green or
blue.
\definepalet
[red]
[ light=lightred,
normal=middlered,
dark=darkred]
Wolfgang
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[layout][grid=black]
On Sat, Apr 27, 2019, 07:04 Pablo Rodriguez wrote:
> On 4/26/19 2:28 PM, Wolfgang Schuster wrote:
> > [...]
> > \showgrid highlights different page elements with colors but you can
> > change the output
> >
> > https://www.ma
path=unitsquare,
74maxwidth=\textwidth,
75height=0.3cm,
76width=0.3cm]
77
78 \definepalet[visualcounter:squaremarkers]
l.68 \definevisualcounter
This was supposed to be in the testing branch of simpleslides.
Please install the visualcounter module
%D We define our color scheme:
62
63 \definecolor [simpleslides:backgroundcolor][s=.95]
64 \definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3]
65 \definecolor [simpleslides:variantcolor] [s=.3]
66 \definecolor [simpleslides:itemize:co
. I recall this applied to \definepalet, \usepath and
a few others.
The issue occasionally pops up on the mailing list, since it's
inconsistent and non-intuitive behaviour.
http://www.ntg.nl/pipermail/ntg-context/2012/067585.html
https://gist.github.com/phi-gamma/2941284#file-features-w
> 89distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m
> + width},
> 90path=unitcircle,
> 91maxwidth=\textwidth,
> 92width=0.3cm]
> 93
> 94 \definepalet[visualcounter:markers]
>
> I thought the above error was led by t-visualcounter,
:
\showgrid[nonumber]{{\dorecurse{80}\page[empty]}}
What command I have to run to disable grid in the next page?
I use MKIV with minimals
\starttext
\definepalet
[layout]
[grid=darkred,
page=darkgreen]
\dorecurse{3}{\page[empty]}
{\showgrid[nonumber]{{\dorecurse{3}{\page[empty]
\dorecurse
]}}
What command I have to run to disable grid in the next page?
I use MKIV with minimals
\starttext
\definepalet
[layout]
[grid=darkred,
page=darkgreen]
\dorecurse{3}{\page[empty]}
{\showgrid[nonumber]{{\dorecurse{3}{\page[empty]
\dorecurse{3}{\page[empty]}
\stoptext
]
\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
foo=bar, %% <- comma not allowed here?
> >>> % foo=bar %% <- works
> >>> ]
> >>> \starttext
> >>> \labeltext{foo}
> >>> \stoptext
> >>> ···
> >>>
> >>> Normally the trailin
foo}
>>> \stoptext
>>> ···
>>>
>>> Normally the trailing comma causes no trouble, but here it won’t
>>> even compile.
>
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
Am 10.04.2011 um 00:22 schrieb Aditya Mahajan:
> Hi,
>
> \definepalet
> [test]
> [one=red,
> two=blue,
> ]
>
> \normalend
>
> gives
>
> ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC.
> ! File ended while scan
Hi,
\definepalet
[test]
[one=red,
two=blue,
]
\normalend
gives
]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC.
! File ended while scanning use of \dodododefinepalet.
while
\definepalet
[test]
[one=red,
two=blue]
\normalend
compiles correctly
Hi,
the subject says it all. The question left is if this is a bug or a
feature :-)
Example:
\starttext
\definecolor[foo] [s=0,a=1,t=.5]
\definepalet[bar]
[foobar=foo]
\blackrule[width=3cm,height=3cm,color=foo] % transparent black
\blackrule[width=3cm,height=3cm,color=foobar] % pure black
Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?Hans van der Meer\setuppapersize[A5][A5]\switchtobodyfont[20pt]\definepalet[dvb
,
backgroundscreen=.9]},
after={\stopframedtext}]
\definepalet[MYcolors]
[prettyone=paleblue,
prettytwo=palecyan,
prettythree=palered,
prettyfour=darkgreen]
\definepalet[XMLcolorpretty][MYcolors]
\starttext
\startXML
hello world
\stopXML
Hi folks,
From
http://wiki.contextgarden.net/Verbatim_text#Defining_your_own_set_of_colors
and considering the following code snippet from buff-ver.mkiv
\definepalet
[colorpretty]
[ prettyone=colorprettyone,
prettytwo=colorprettytwo,
prettythree=colorprettythree,
prettyfour
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
>
inecolor[colorprettytwo] [r=.0, g=.8, b=.0] % green
\definecolor[colorprettythree][r=.0, g=.0, b=.9] % blue
\definecolor[colorprettyfour] [s=0.60] % gray
\definecolor[colorprettyfive] [orange]
\definepalet[colorpretty]
[prettyone=colorprettyone,
prettytwo=colorprettyt
fer to other
lowercase things (filename, pretty printer name) are lowercase consistently.
How's this?
in order to get that working and remain compatible, we'd also need to
redefine
\definepalet [TEXcolorpretty] [colorpretty]
\definepalet [TEXgraypretty] [graypretty]
(ans use some
color palet with my own palet.
\definepalet[corp-pretty][prettyone=corp-color-darkblue,
prettytwo=corp-color-blue, prettythree=corp-color-lightblue,
prettytwoone=corp-color-grey, prettyfour=corp-color-green,
prettyfourone=corp-color-green, prettyfourtwo=corp-color-green,
prettyfourthree=corp
[position][command][state]
# \definemainfield
\definemakeup[name][settings]
\definemarking[name][name]
# \definemeasure
# \defineoutput[name][specials]
\defineoverlay[names][command]
# \definepagebreak
\definepalet[name][name]
\definepapersize[name][dimenstions]
\defineparagraphs[name][op
not used palets before, so I do not know if something has
> broken or not. With your code, I do not get any colors. However, if I
> change
>
>
>>\setuptyping
>> [TEX]
>> [palet=MYcolorpretty]
>
> with
>
> \definepalet[TEXcolorpretty][MYcolorpretty]
>
&
ith your code, I do not get any colors. However, if I
change
> \setuptyping
> [TEX]
> [palet=MYcolorpretty]
with
\definepalet[TEXcolorpretty][MYcolorpretty]
it works.
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
same problem as the version I used before
(aug 2006).
Sample file:
- --
% interface=en
\setupbodyfont
[postscript,16pt]
\setupcolors
[state=start]
\setupalign
[hyphenated]
\definepalet
[MYcolorpretty]
[prettyone=colorprettyone,
pret
file:
- --
% interface=en
\setupbodyfont
[postscript,16pt]
\setupcolors
[state=start]
\setupalign
[hyphenated]
\definepalet
[MYcolorpretty]
[prettyone=colorprettyone,
prettytwo=colorprettytwo,
prettythree=colorprettythree,
prettyfour=colorprettyfour]
\setuptyping
[TEX]
[
,r=.6,g=.6,b=1]
\definecolor [tdsky][t=.5,a=1,r=.1,g=.1,b=1]
\definecolor [tlground] [t=.5,a=1,r=.3,g=.9,b=.3]
\definecolor [tdground] [t=.5,a=1,r=0,g=.5,b=0]
\definecolor [tcspots] [t=.5,a=1,r=.33,g=.1,b=0]
\definepalet
[cow]
[normal=lground,
contour=dground,
sky=lsky]
\d
r ylabel zeros zlabel
zoom
\installprettytype [MATLAB] [MATLAB]
\definetyping [MATLAB] [\c!option=MATLAB]
\definepalet [MATLABcolorpretty][colorpretty]
\definepalet [MATLABgraypretty] [graypretty]
\protect \endinput
___
ntg-con
prettytype [MATLAB] [MATLAB]
\definetyping [MATLAB] [\c!option=MATLAB]
\definepalet [MATLABcolorpretty][colorpretty]
\definepalet [MATLABgraypretty] [graypretty]
\protect \endinput
\setupcolors[state=start]
\input verb-matlab
\starttext
\startMATLAB
n = 150e5 ;
p = 0.9 ;
d = 300
[MYcolorthree][r=.8,g=.5,b=.8]
\definecolor[MYcolorfour] [r=.8,g=.2,b=.5]
\definepalet[MYcolors]
[ prettyone=MYcolorone,
prettytwo=MYcolortwo,
prettythree=MYcolorthree,
prettyfour=MYcolorfour]
\definepalet[XMLcolorpretty] [MYcolors] % the name is magic !
\setupcolors
inecolor [colorprettyfour] [r=1,b=1]
>
> this should come after the section with \module ...
it does
> >since this hasn't changed anything, i added
> >%M \definepalet
> >%M [MPcolorpretty]
> >%M [ prettyone=colorprettyone,
> >%Mprettytwo=colorprettytw
ng, i added
%M \definepalet
%M [MPcolorpretty]
%M [ prettyone=colorprettyone,
%Mprettytwo=colorprettytwo,
%Mprettythree=colorprettythree,
%Mprettyfour=colorprettyfour]
still results in the default gray palet.
did you use --mode=color ?
or add %M \setupcolors[state=start]
o] [g=1]
%M \definecolor [colorprettythree] [b=1]
%M \definecolor [colorprettyfour] [r=1,b=1]
since this hasn't changed anything, i added
%M \definepalet
%M [MPcolorpretty]
%M [ prettyone=colorprettyone,
%Mprettytwo=colorprettytwo,
%Mprettythree=colorprettythree,
%Mprettyf
41 matches
Mail list logo