How do you define a custom color [LINUX}

new topic     » topic index » view thread      » older message » newer message
-- from std/graphcst.e 
 
--**** 
-- === Routines 
 
--** 
-- Mixture Type 
-- 
-- Comments: 
-- 
-- A mixture is a ##{red, green, blue}## triple of intensities, which enables you to define 
-- custom colors. Intensities must be from 0 (weakest) to 63 (strongest). Thus, the brightest 
-- white is ##{63, 63, 63}##. 
 
public type mixture(object s) 
	if atom(s) then 
		return 0 
	end if 
	 
	if length(s) != 3 then 
		return 0 
	end if 
	 
	for i=1 to 3 do 
		if not integer(s[i]) then 
			return 0 
		end if 
  		if and_bits(s[i],#FFFFFFC0) then 
  			return 0 
  		end if 
	end for 
	return 1 
end type 

I haven't got a clue as to how to use this type. I suspect that it might be an old dos routine to be used with a function called pallete.

Can custom colors be defined in Euphoria/LINUX?

Regards,
Ken

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu