EasyManua.ls Logo

Sinclair QL - Page 173

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RANDOMISE
maths
functions
RANDOMISE allows the random number generator
to
be reseeded.
If
a parameter
IS
specified the parameter
is
taken
to
be the new seed.
If
no parameter
is
specified then
the generator
is
reseeded from internal information.
syntax:
RANDOMISE [numeric_expressionl
example:
i.
RANDOMISE [set seed
to
internal
data)
ii.
RANDOMISE
3.2235
[set
seed
to
3.2235]
RECOl
will
recolour individual pixels
in
the window attached
to
the specified or default
channel according
to
some preset pattern. Each parameter
is
assumed to specify,
in
order,
the colour
in
which each pixel
is
recoloured,
i.e.
the
first
parameter specifies the
colour with which
to
recolour
all
black
pixels,
the second parameter blue
pixels,
etc.
The colour specification must be a solid colour,
i.e.
it
must be
in
the range 0
to
7
46
RECOL
windows
syntax:
example:
cO:
~
new colour for black
cl:=
new colour for blue
c2:~
new colour for
red
c3: = new colour for magenta
c4:= new colour for green
c5:
= new colour for cyan
c6:
~
new colour for yellow
c7:
= new colour for white
RECOl [channel
,I
cO,
cl,
c2, c3, c4,
c5,
c6, c7
RECOl
2,3,4,5,6,7,1,0
!recolour blue
to
magenta,
red
to
green, magenta
to
cyan
etc.1
12/84

Other manuals for Sinclair QL

Related product manuals