fogandwhisky / starlingcamera Goto Github PK
View Code? Open in Web Editor NEWA camera component that integrates with the Starling Framework (AS3)
A camera component that integrates with the Starling Framework (AS3)
THIS IS VERY OLD CODE AND NO LONGER MAINTAINED. USE AT YOUR OWN RISK. This is a simple view component for the Starling AS3 Framework that allows you to integrate a Camera with the rest of Starling's display list. Look at the Main and MainView classes for a simple tutorial. StarlingCamera supports: - Arbitrary size of camera - Mirroring of the camera view - Arbitrary framerate of the display for optimized performance - Downsampling of the camera display for optimized performance - A rotate flag to handle a bug on mobile AIR - Full-resolution snapshot call (getImage()) Known issues: - On IOS, the front-facing camera is higher resolution than the rear camera. This makes the image seem unnaturally zoomed. I'll post a fix when I can. - A bug on Air for IOS causes the camera to rotate 90 degrees. This is handled in StarlingCamera by allowing the developer to pass in a rotate flag as part of the init() method.
I tried to fix it like this:
if (rotate)
{
matrix.rotate(Math.PI/2);
matrix.tx = screenRect.width;
}
And it's working now.
Not sure about working with a mirror mode..?
Good Morning,
The script not work on IOS8.
Is there a solution ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.