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

  • Home
  • SEARCH
  • 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 6689903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:24+00:00 2026-05-26T05:34:24+00:00

I have built this image using html 5 canvas, http://jsfiddle.net/nvcode/YGD3q/1/ I was hoping if

  • 0

I have built this image using html 5 canvas,

http://jsfiddle.net/nvcode/YGD3q/1/

I was hoping if someone could give me some pointers on how to extract the pixel colour on mouse move, and if possible how to make it so that instead of having a full horizontal spectrum, and a then vertical white to transparent to black to white on top, maybe have a hue setting to down full colour to produce the grays? I have no idea on how I would do this?

Thanks

  • 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-05-26T05:34:25+00:00Added an answer on May 26, 2026 at 5:34 am

    For the record it is considered bad form to ask more than one (complex) question in the same SO question.

    Here you go for the first part:

    http://jsfiddle.net/YGD3q/4/

    elem.addEventListener('mousemove', function(e) {
        var x = e.offsetX; // lame but close enough for now
        var y = e.offsetY;
        var data = context.getImageData(x, y, 1, 1).data;
        // just paint it to the bottom right as an example for now:
        context.fillStyle = 'rgb(' + data[0] + ',' + data[1] + ',' + data[2] + ')';
        context.fillRect(280,280,20,20);    
    }, false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this typical scenario. I have a smartclient application built on .net 2.0
We have a Java Applet built using AWT. This applet lets you select pictures
I have a website I've built in VS2005, C#, .NET 2.0. This website does
So, I have this desktop app built using WPF and C#. It's basically an
I have a site built using asp.net mvc running on IIS 7 using integrated
I have built a T-SQL query like this: DECLARE @search nvarchar(1000) = 'FORMSOF(INFLECTIONAL,hills) AND
I know this sounds confusing: I have just built some basic prev/next pagination for
We have a system built on seam/richfaces. There's this webpage where the tables are
I have this regex I built and tested in regex buddy. _ [ 0-9]{10}+
I have a Windows service built upon ATL 7's CAtlServiceModuleT class. This service serves

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.