Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
SouCoder
/
phaser
Public
forked from
phaserjs/phaser
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
phaser
src
gameobjects
BitmapData.js
on
dev
User selector
All users
Datepicker
All time
Commit history
Commits on Jul 22, 2015
Removed BaseTextureCache requirement from BitmapData.
Show description for ffaa7d7
photonstorm
committed
ffaa7d7
View commit details
Copy full SHA for ffaa7d7
View code at this point
Browse repository at this point
All undefined argument checks were changed from `if (typeof x === 'undefined')` to `if (x === undefined)` removing the typeof check and saving some bytes across the codebase in the process.
photonstorm
committed
f15fe67
View commit details
Copy full SHA for f15fe67
View code at this point
Browse repository at this point
Commits on Jul 9, 2015
BitmapData.clear has 4 new optional parameters: x, y, width and height, that define the area to be cleared. If left undefined it works exactly the same as before and clears the entire canvas.
photonstorm
committed
5ad3698
View commit details
Copy full SHA for 5ad3698
View code at this point
Browse repository at this point
Commits on Jul 8, 2015
BitmapData.generateTexture will take a snapshot of the BitmapDatas canvas at that moment in time and convert it into an Image, which is then stored in the Phaser image Cache based on the key given.…
Show description for d027bf8
photonstorm
committed
d027bf8
View commit details
Copy full SHA for d027bf8
View code at this point
Browse repository at this point
BitmapData.move(x, y) allows you to shift the contents of the BitmapData horizontally and vertically by the given amounts. The image wraps-around the edges of the BitmapData.
Show description for 86cac20
photonstorm
committed
86cac20
View commit details
Copy full SHA for 86cac20
View code at this point
Browse repository at this point
Commits on May 8, 2015
BitmapData.update now validates the `width` and `height` values to ensure they aren't lower than 1, which would previously cause a context error.
photonstorm
committed
855831e
View commit details
Copy full SHA for 855831e
View code at this point
Browse repository at this point
Commits on May 6, 2015
If a BitmapData is created with a width or height set to zero then the width and/or height are set to a default value (256) instead to avoid getContext errors.
photonstorm
committed
af66b49
View commit details
Copy full SHA for af66b49
View code at this point
Browse repository at this point
Commits on May 3, 2015
jsdocs fix.
photonstorm
committed
3578cd0
View commit details
Copy full SHA for 3578cd0
View code at this point
Browse repository at this point
Commits on Apr 15, 2015
jsdoc fixes.
photonstorm
committed
b0e1b8f
View commit details
Copy full SHA for b0e1b8f
View code at this point
Browse repository at this point
Commits on Apr 2, 2015
Added guards around `context.getImageData` calls in BitmapData, Text and Canvas Tinting classes to avoid crashing restricted browsers like Epic Browser. Please understand that several Phaser featur…
Show description for 36c0645
photonstorm
committed
36c0645
View commit details
Copy full SHA for 36c0645
View code at this point
Browse repository at this point
Commits on Mar 1, 2015
Component documentation
Show description for 4de95c0
pnstickne
committed
4de95c0
View commit details
Copy full SHA for 4de95c0
View code at this point
Browse repository at this point
Commits on Feb 25, 2015
Copyright date change.
photonstorm
committed
a69e53f
View commit details
Copy full SHA for a69e53f
View code at this point
Browse repository at this point
Commits on Jan 18, 2015
BitmapData.text will render the given string to the BitmapData, with optional font, color and shadow settings.
photonstorm
committed
a67d2df
View commit details
Copy full SHA for a67d2df
View code at this point
Browse repository at this point
Commits on Jan 5, 2015
BitmapData.drawGroup draws the immediate children of a Phaser.Group to a BitmapData. Children are only drawn if they have their `exists` property set to `true`. The children will be drawn at their …
Show description for 7411313
photonstorm
committed
7411313
View commit details
Copy full SHA for 7411313
View code at this point
Browse repository at this point
Commits on Nov 30, 2014
Documentation - consistency updates
Show description for dab8772
pnstickne
committed
dab8772
View commit details
Copy full SHA for dab8772
View code at this point
Browse repository at this point
Commits on Nov 29, 2014
Added alpha setting to getContext.
photonstorm
committed
d5dfa46
View commit details
Copy full SHA for d5dfa46
View code at this point
Browse repository at this point
Commits on Oct 21, 2014
JSDoc fixes.
photonstorm
committed
96fd0ad
View commit details
Copy full SHA for 96fd0ad
View code at this point
Browse repository at this point
Commits on Oct 17, 2014
Typo fix.
photonstorm
committed
c960ab5
View commit details
Copy full SHA for c960ab5
View code at this point
Browse repository at this point
BitmapData.getFirstPixel will scan the BitmapData and return the color and location of the first non-transparent pixel encountered. You can specify one of 4 scan directions: top to bottom, bottom t…
Show description for 4f1ba99
photonstorm
committed
4f1ba99
View commit details
Copy full SHA for 4f1ba99
View code at this point
Browse repository at this point
Commits on Oct 13, 2014
Updates for Pixi v2
photonstorm
committed
d206dd0
View commit details
Copy full SHA for d206dd0
View code at this point
Browse repository at this point
Commits on Oct 11, 2014
Fixes for Pixi update WebGL UV calls.
photonstorm
committed
ac27f12
View commit details
Copy full SHA for ac27f12
View code at this point
Browse repository at this point
Commits on Oct 9, 2014
Fixed issue with textureLine creating white blocks in iOS.
photonstorm
committed
08c6106
View commit details
Copy full SHA for 08c6106
View code at this point
Browse repository at this point
Commits on Oct 3, 2014
Fixed textureLine and added repeat parameter.
photonstorm
committed
ff034b5
View commit details
Copy full SHA for ff034b5
View code at this point
Browse repository at this point
BitmapData.textureLine takes a Phaser.Line object and an image in the image cache. It then accurately draws the image as a repeating texture for the full length of the line.
photonstorm
committed
ab78710
View commit details
Copy full SHA for ab78710
View code at this point
Browse repository at this point
Commits on Oct 1, 2014
Cache.addBitmapData has a new parameter: `frameData` allowing you to pass a `Phaser.FrameData` object along with the BitmapData.
Show description for d65c526
photonstorm
committed
d65c526
View commit details
Copy full SHA for d65c526
View code at this point
Browse repository at this point
Commits on Sep 30, 2014
BitmapData.shadow(color, blur, x, y) provides a quick way to set all the relevant shadow settings, which are then be used in future draw calls.
photonstorm
committed
26f9e05
View commit details
Copy full SHA for 26f9e05
View code at this point
Browse repository at this point
If you pass a tinted Sprite to `BitmapData.draw` or `BitmapData.copy` it will now draw the tinted version of the Sprite to the BitmapData and not the original texture.
photonstorm
committed
ef85b84
View commit details
Copy full SHA for ef85b84
View code at this point
Browse repository at this point
Commits on Sep 25, 2014
Added the `sourceRect` and `maskRect` parameters back into `BitmapData.alphaMask` as they were accidentally removed in 2.1 (thanks seejay92)
photonstorm
committed
415c7fe
View commit details
Copy full SHA for 415c7fe
View code at this point
Browse repository at this point
Commits on Sep 16, 2014
Lots of jsdocs fixes ready for the new doc generator.
photonstorm
committed
20551f9
View commit details
Copy full SHA for 20551f9
View code at this point
Browse repository at this point
Commits on Sep 4, 2014
alphaMask update.
photonstorm
committed
9fa3f8f
View commit details
Copy full SHA for 9fa3f8f
View code at this point
Browse repository at this point
Fixed TypeScript defs for BitmapData.
photonstorm
committed
3a69ed9
View commit details
Copy full SHA for 3a69ed9
View code at this point
Browse repository at this point
jsdocs, fixes to load, draw, copy and addToWorld.
photonstorm
committed
9aaa8d8
View commit details
Copy full SHA for 9aaa8d8
View code at this point
Browse repository at this point
Commits on Sep 3, 2014
jshint fix
photonstorm
committed
6836835
View commit details
Copy full SHA for 6836835
View code at this point
Browse repository at this point
Optimised BitmapData.copy and refactoring continues.
photonstorm
committed
804eea9
View commit details
Copy full SHA for 804eea9
View code at this point
Browse repository at this point
BitmapData.copy no longer creates any temporary variables. It also accurately copies over Sprite/Image values before drawing them.
Show description for 15e6edc
photonstorm
committed
15e6edc
View commit details
Copy full SHA for 15e6edc
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.