Class: Util

Defined in: src/core/

Class Method Summary

Class Method Details

+ (void) extend(obj, src...)

Helper function that extends one object with all the properies of other objects

+ (void) clampRGB(val)

In order to stay true to the latest spec, RGB values must be clamped between 0 and 255. If we don't do this, weird things happen.

+ (void) copyAttributes(from, to, opts = {})

+ (void) dataArray(length = 0)

Support for browsers that don't know Uint8Array (such as IE9)