Closed
Bug 293304
Opened 20 years ago
Closed 20 years ago
canvas: gradients with varying opacity [alpha channel] behave weirdly
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 293353
People
(Reporter: asqueella, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
This should draw a nice white-to-black gradient: ctx.fillStyle = "black"; ctx.fillRect(0,0,500,500); var gradient = ctx.createLinearGradient(0, 0, 500, 0); gradient.addColorStop(0, "rgba(255,255,255,1)"); gradient.addColorStop(1, "rgba(255,255,255,0)"); ctx.fillStyle = gradient; ctx.fillRect(0,0,500,500); Instead it draws vertical white/green/blue lines. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050507 Firefox/1.0+
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
screenshot of bad rendering: http://mozilla.doslash.org/stuff/canvas/293304bad.png right rendering using svg: http://mozilla.doslash.org/stuff/canvas/293304good.svg
It renders correctly on linux; this seems to be a BGR problem with windows. Looking into it.
Comment 4•20 years ago
|
||
works for me on windows... Can you give some more info on your video card/OS/color depth/etc?
| Reporter | ||
Comment 5•20 years ago
|
||
Sure. WinXP sp1 Geforce 2 MX400 (just noticed - relatively old drivers) 32 bits color depth (1024x768 if that matters). Normal gradients and SVG's gradients using stop-opacity work fine though.
Comment 6•20 years ago
|
||
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050507 Firefox/1.0+ svg enabled, gdiplus.dll installed, The computer is running the original factory-installed Win98. I later installed SP1 and DX7. Screenshot is from the original driver, changing the setting from 24 bit to 16 bit or resolution from 800x600 to 1024x768 gave same result. Updating the driver to the current version 1.32 from 2001 didn´t change my 800x600 result. Link to a 1998 review of the capabilities of that card under DX5: http://members.fortunecity.com/overclocker/software/sis6326.htm I have a test installation of Sisoft sandra, telling a lot about missing capabilities, but I can´t copy and paste and I don´t know what is needed and what not.
Comment 7•20 years ago
|
||
I'm seeing the same output as Nickolay. Win2K, Matrox G400 32MB, 1024x768x32bit, GDI+ in Firefox dir, Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050507 Firefox/1.0+
| Reporter | ||
Comment 8•20 years ago
|
||
See also bug 293353.
Updated•20 years ago
|
Summary: canvas: gradients with varying opacity [alpha channel] behave wierdly → canvas: gradients with varying opacity [alpha channel] behave weirdly
Comment 9•20 years ago
|
||
see bug 293353#c11 VC6. (beast) is bad, VC7.1 (vlad's) WFM
Comment 10•20 years ago
|
||
Given the fact that it works in VC7.1 builds and not VC6 builds, I'm going to dupe this. *** This bug has been marked as a duplicate of 293353 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•