jelaniharris/Retro-Scanlines
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Code should be self explainatory. Example Usage: import com.banditrevolvers.ScanLines; var mScanlines:ScanLines; //Creates a ScanLine sprite mScanlines = new ScanLines(); mScanlines.setDimensionsFromMovieClip(testarea); mScanlines.setPositionFromMovieClip(testarea); //Assign our pattern and draw the sprite mScanlines.setPattern(ScanLines.PATTERN_HORIZONTAL); mScanlines.drawLines(); //Add the sprite whereever you need it displayed this.addChild(mScanlines); If you have a movie clip that you want to have the scanlines overlay you can use the setDimensionsFromMovieClip method to automatically set the dimensions. Also, you can make the new scanline sprite sit at the same position with setPositionFromMovieClip.
About
Retro scanlines in as3
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published