Sergey Chikuyonok gets his Philips Ambilight foo on as he created a HTML5 video + canvas sample that mimics the TV effect.
As the video runs, a snapshot is sent over to JavaScript land where colors are worked out:
PLAIN TEXT
JAVASCRIPT:
function getMidColors(side) {
var w = buffer.width,
h = buffer.height,
lamps = getOption(’lamps’),
block_width = getOption(’block_size’),
block_height = Math.ceil(h / lamps),
pxl = block_width * block_height * 4,
result = [],
img_data = buffer_ctx.getImageData(side == ‘right’ ? w – block_width : 0, 0, block_width, h),
total_pixels = img_data…
<< Announcing Ext JS 3.2 beta – Multisort, Transitions and Composite Fields













