I found a javasript program on the web, it has the following call to
rgb() which is not in my javascript manual. What is it and what is the
+red+ notation ?
this.span.child Nodes[i].style.color="r gb("+red+", "+grn+", "+blu+")"; 2 1697
surf wrote:
I found a javasript program on the web, it has the following call to
rgb() which is not in my javascript manual. What is it and what is the
+red+ notation ?
this.span.child Nodes[i].style.color="r gb("+red+", "+grn+", "+blu+")";
A CSS rgb color value is assigned. The + is just doing string
concatenation to construct a string value on the right side of the
assignment.
--
Martin Honnen http://JavaScript.FAQTs.com/
surf a écrit :
I found a javasript program on the web, it has the following call to
rgb() which is not in my javascript manual. What is it and what is the
+red+ notation ?
this.span.child Nodes[i].style.color="r gb("+red+", "+grn+", "+blu+")";
color = '#f3c409';
same as :
color = 'rgb(243, 196, 9)';
same as :
color = 'rgb(95.5%, 77%, 3.7%)'; http://stephane.moriaux.perso.orange...couleurs.shtml http://stephane.moriaux.perso.orange...s_palette_gimp
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Oracle3001 |
last post by:
Hi All,
I want to take an image maybe in a jpeg or gif format or rgb and convert it
to a series of CMYK images (one for each colour). If there an easy way using
the API of java 2, or JAI. If not does anybody no an algorithm I can use to
implement this conversion.
Cheers,
Adam
|
by: Johan Holst Nielsen |
last post by:
Hi all,
I hope someone can help me.
I have do do a color conversion from RGB to CMYK. It's harder than I
thought :D Anyway, here is my problem.
I tried some differents ways to do it - I have a TIFF RGB file that I
need to convert to CMYK colorspace.
|
by: Phil Stanton |
last post by:
When designing a new form or report, the Default ForeColor is often
something like -2147483640 which is the colour of Windows text (possibly
black) and the default backColor is -2147483643 (possibly white)
Can anyone tell me how to convert these colours to either RGB colours or the
Long number used by Access. Black is 0 and White is 16777215
...
|
by: Rich |
last post by:
I need to change my form's backcolor back to the design color after it
changes to
another system.Drawing.Color. In the backcolor design, the value is in RGB
me.BackColor = ...RGB(255, 255, 192)
This doesn't work. How can I change the RGB values to System.Drawing.Color?
Thanks
|
by: Sugapablo |
last post by:
Take a look at this page if you will:
http://www.sugapablo.net/temp/colortest.html
Does it look right to you? Should #0000ff and #000fff be the same shade
of blue? Especially since #ff0000 is red and #fff000 is drastically
different as yellow.
Maybe my monitor is busted or something?
Does anyone else find this strange? That the RGB levels would be
| |
by: teresni |
last post by:
We've got some JavaScript code that gets the current background color.
It works, but Netscape returns it in rgb format, while IE returns it as
the color
text name (e.g., 'white'). We need to do some math calculations on the
color,
so I want the rgb values. How can I get IE to return the background
color in rgb
format, or how do I convert the text color to its rgb value? Thanks!
|
by: anuragkhanna8 |
last post by:
Hi,
I am trying to convert a 16 bit rgb value to 32 bit, however the new
color generated is different from the 16 bit rgb data. Please let me
know the formula to convert an 16 bit rgb data to 32 bit rgb data.
Thanks!!
|
by: Robbie |
last post by:
Hi. I've made 2 functions which play around with colours.
They convert a 'colour number' (I don't know what the proper name for it is, so I call it this - the Long given back by RGB(), object.BackColor, etc, which represents a value of red, green and blue) into another 'colour number' but this is a greyscale version of it.
There are 2 functions - the first one 'decodes' the 'colour number' into the separate R G and B values. The second one...
|
by: cjlopesmartins |
last post by:
Hi
Please help
I have this mysql table field with a RGB value like 120-10-200 and I
nead this php function to convert this value into html color
#??????
Thanks in advance
|
by: Sodrohu |
last post by:
Currently I got a thermal image mapping program which converts grayscale pictures to RGB. Now, what I need to do is to convert those 3 RGB colors into other three colours. The choice of colours are white, black, red, green and blue.
To explain more, for the thermal mapping using grayscale converted to RGB, red denotes hot areas, green-zero, and blue-cold. What I want to do is to make a program that enables you to choose the colours from the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |