- From: <bugzilla@jessica.w3.org>
- Date: Thu, 08 Nov 2012 04:57:06 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19905
Priority: P2
Bug ID: 19905
Assignee: jaymunro@microsoft.com
Summary: HTML5 Canvas Gradient - new idea, "new Canvas"...
QA Contact: public-html-bugzilla@w3.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: alexei03a@gmail.com
Hardware: All
Status: NEW
Version: unspecified
Component: CR HTML Canvas 2D Context
Product: HTML WG
I have too many ideas.
1. I suggest remove "CanvasGradient" object and add:
linear-gradient(
[ [ <angle> | to <side-or-corner> ] ,]?
<color-stop>[, <color-stop>]+
)
For "fillStyle" and "strokeStyle".
For example:
ctx.fillStyle = "linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%)";
2. I suggest new transformations:
ctx.transform(String cssTransform);
ctx.setTransform(String cssTransform);
For example:
ctx.setTransform("translate(10px) rotate(45deg)");
ctx.setTransform("matrix(1, 0, 0, 1, 0, 0)");
Old:
ctx.setTransform(1, 0, 0, 1, 0, 0);
3. I suggest "Canvas" object:
var canvas = new Canvas(100, 100);
var ctx = canvas.getContext("2d");
ctx.fillRect(0, 0, 100, 100);
4. I suggest new color system:
rgba(white, 0.5) instead of rgba(255, 255, 255, 0.5)
rgba(#00FF00, 0.5) instead of rgba(0, 255, 0, 0.5)
I want more freedom in web standards, much more! In our world, all web
programmers - from small to big cheaters. Let's make concessions.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 8 November 2012 04:57:07 UTC