Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:09:58+00:00 2026-06-11T00:09:58+00:00

Okay, so I wrote this just under a decade ago: http://meyerweb.com/eric/tools/color-blend/ I’m pretty sure

  • 0

Okay, so I wrote this just under a decade ago:

http://meyerweb.com/eric/tools/color-blend/

I’m pretty sure it worked okay at the time, but since then (or, who knows, maybe always) a bug has crept in. I can demonstrate it like so:

  1. Stay in ‘hex’. Pick a couple of colors. Blend them.
  2. Edit the hex colors with the keyboard (that is, type in new hex values, or alter the ones that are there). Blend again.
  3. So far so good.
  4. Switch the mode to “RGB”.
  5. Edit one of the numbers.
  6. Now nothing works—no blending, no type switching, nothing.

Why? I even can’t figure out where it’s failing.

(Yes, I know the JS is clumsy as hell and uses global variables and all kinds of ick. I do plan to rewrite it. But first I need to understand what’s going wrong here, and if at all possible how I should have diagnosed it myself. Please note that I just barely understand how to use, in a very basic way and probably not properly, the Firefox JS debugger.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:10:00+00:00Added an answer on June 11, 2026 at 12:10 am

    You need a case-insensitive switch on your regex in colorParse().

    You .toUpperCase the color… so ‘rgb’ goes to ‘RGB’ but then your regex tries to replace lowercase ‘rgb’ which it can’t do.

    col = c.replace(/[#rgb(]*/i, ”);

    Notice the /i in the regex to make it case insensitive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading this article: http://sqlserverpedia.com/wiki/Understanding_the_StackOverflow_Database_Schema and the writer wrote something special about the
Okay, so i have this code i wrote: class Connection { public static StreamWriter
If I write like this: ShellExecute(NULL, open, www.google.com, NULL, NULL, SW_SHOWNORMAL); Everything's okay and
Okay, this should be simple, but I just can't get it to work. I
Okay, I'm having serious problems here. On my own computer, this code works just
Okay so I am having this problem. I write up a script to be
Okay guys, basically the problem I'm having is this. I've been assigned to write
Okay, so I was teaching my girlfriend some c++, and she wrote a program
Okay this question is very simple: I have a facebook page, and a website.
Okay, I feel a bit foolish for having to ask this but I guess

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.