Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Webmaster > Web Blog

December 20th, 2012, 15:24 GMT · By

BLOG

Firefox 20 Nightly Gets Color Blend Modes for the Canvas

SHARE:

Adjust text size:


Some blending examples, click for the full list Enlarge picture - Some blending examples, click for the full list
Firefox 20 has gotten a very interesting new feature, support for several types of blending, things like overlay, color-burn and so on. This is only for HTML5 Canvas, but Adobe's Rik Cabanier is working on adding blend modes to the specifications for both CSS and Canvas.

To prove the need and how it would work, he implemented the code needed in Firefox and plans to do the same for WebKit. The code for the Canvas component is ready and is shipped with Firefox 20 Nightly.

Specifically, the implementation extends the "globalCompositeOperation" property which defines how a new image is drawn on top of what was already displayed in the Canvas.

Normally, the new image just replaces the old one, but with the new blend modes, the two images can be combined (i.e. blended) in ways familiar to anyone that's used a photo editor before.

For now, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color and luminosity are supported.

This is just an early implementation and may not arrive in the stable Firefox 20. But if things go according to plan, blending will become a standard feature for both CSS and the HTML5 Canvas.

TELL US WHAT YOU THINK:

1,487 hits · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Activate the New YouTube Before Everyone Else - Guide

Firefox OS Simulator Now Available

Google Revamps WhatBrowser.org, Suggests Safari to Android Users

Firefox Support for H.264 Is Partially Here, Will Use Flash on XP

Firefox Is 8 Years Old, Firefox 1.0 Came Out in 2004 on This Day

READER COMMENTS:



No user comments yet.
Be the first to express your opinion!
Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM