A fast, flexible CD+Graphics (CD+G) renderer
MIT License
Fixed:
Improved:
contentBounds
coordinates for each framePublished by bhj over 3 years ago
v6 is a major change making the library significantly smaller and more flexible. Please see the README for updated example usage.
render()
now simply returns an ImageData object along with some metadata. This gives full control over your canvas (if a canvas is used at all!)onBackgroundChange
callback is removed; instead, check the backgroundRGBA
metadata provided with each rendered framesetOptions()
method is removed, as options are now arguments to render()
new Uint8Array
is handled internally)Improved:
load()
timecontentBounds
metadata describing a bounding box that fits the rendered frame's non-transparent contentPublished by bhj over 4 years ago
Breaking changes/migrating from 4.x:
v5 has a new, simple API. Instead of play()
, pause()
and syncTime()
, you now control the requestAnimationFrame loop and render()
a frame at the currentTime. This also enables full rewind/random seek support. See the README for more on using render()
.
Published by bhj over 4 years ago
Breaking changes/migrating from 3.x:
forceTransparent
option has been renamed forceKey
. Subsequently, the forceTransparent()
method has been removed, and forceKey
can be set with the new setOptions()
method.Improved:
Published by bhj over 4 years ago
Breaking changes/migrating from 2.x:
imageSmoothingEnabled
)stop()
method has been renamed pause()
sync()
method has been replaced with syncTime()
and now expects a time in seconds (instead of ms)Improved:
Published by bhj almost 6 years ago
Published by bhj almost 6 years ago
forceTransparent
option and callback for background color changesPublished by bhj over 6 years ago
Bug fixes
Published by bhj about 7 years ago