Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum > PHP Code Library
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Thread Tools Search this Thread Rate Thread
Old 25-Mar-2007, 18:53
admin's Avatar
admin admin is offline
Join Date: Sep 2002
Posts: 1,052
admin will become famous soon enough

Re: Blended Colours by Opacity, a PHP Function

I just posted a GID Community blog entitled: Blended Colours by Opacity, a PHP Function.

A couple of days ago, I wrote this PHP function to help me find a colour by manipulating opacity levels between 2 colours. I just give the function a foreground colour, a background colour, and a suitable opacity level (for the foreground colour) and have it return a hexadecimal number.

In plain English: if the foreground colour is FFFFFF (white) and the background color is 000000 (black), and the opacity level is set at 50, I would expect the function to return 808080 (grey or gray). read more...

Please let me know what you think.

This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Message Class TransformedBG C++ Forum 5 29-Nov-2006 22:28
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 13:12
[Tutorial] Function Pointers aaroncohn C++ Forum 4 17-Feb-2006 12:33
C++ PhoneBook marita C++ Forum 46 12-Jun-2005 12:10
Revising Script style ?????? pepee MySQL / PHP Forum 4 14-Apr-2004 04:59

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:59.

vBulletin, Copyright © 2000 - 2018, Jelsoft Enterprises Ltd.