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
Accelerator
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 }}
halgorithm
/
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
webgl-tilemap
User selector
All users
All time
Commit history
Commits on Apr 5, 2016
BitmapData has a new property `frameData` which is a Phaser.FrameData container instance. It contains a single Frame by default, matching the dimensions of the entire BitmapData, but can be populat…
Show description for c33b53f
photonstorm
committed
c33b53f
View commit details
Copy full SHA for c33b53f
View code at this point
Browse repository at this point
Commits on Apr 4, 2016
BitmapData.copy, and by extension draw, drawFull, drawGroup, etc, would incorrectly handle drawing a tinted Sprite if it was using a frame from a texture atlas (thanks @PhaserDebugger #2405)
photonstorm
committed
bc4b828
View commit details
Copy full SHA for bc4b828
View code at this point
Browse repository at this point
2015 - 2016.
photonstorm
committed
f40cfbe
View commit details
Copy full SHA for f40cfbe
View code at this point
Browse repository at this point
Commits on Feb 18, 2016
BaseTexture.destroy wasn't correctly removing the texture from the BaseTextureCache if it was a cached CanvasPool entry (such as Text objects use), causing drawImage errors in Canvas mode, and just…
Show description for 17071b5
photonstorm
committed
17071b5
View commit details
Copy full SHA for 17071b5
View code at this point
Browse repository at this point
Commits on Feb 3, 2016
BitmapData.drawGroup can now handle drawing Emitters and BitmapText objects that are part of the Group.
photonstorm
committed
a4c5fb9
View commit details
Copy full SHA for a4c5fb9
View code at this point
Browse repository at this point
BitmapData would always create a private `_swapCanvas` which was a clone of its main canvas used for advanced movement operations. This no longer happens. The swap canvas is created only as needed,…
Show description for 8043d29
photonstorm
committed
8043d29
View commit details
Copy full SHA for 8043d29
View code at this point
Browse repository at this point
Commits on Feb 2, 2016
Merge pull request #2222 from FracturedShader/patch-2
Show description for bceca55
photonstorm
committed
bceca55
View commit details
Copy full SHA for bceca55
View code at this point
Browse repository at this point
Commits on Feb 1, 2016
Merge pull request #2209 from FracturedShader/patch-1
Show description for e551254
photonstorm
committed
e551254
View commit details
Copy full SHA for e551254
View code at this point
Browse repository at this point
Fixed docs (#2216)
photonstorm
committed
76e2dc6
View commit details
Copy full SHA for 76e2dc6
View code at this point
Browse repository at this point
Commits on Nov 23, 2015
Update to BitmapData.setHSL to follow conventions
FracturedShader
committed
8f1450e
View commit details
Copy full SHA for 8f1450e
View code at this point
Browse repository at this point
Commits on Nov 17, 2015
Update BitmapData.shiftHSL, limitValue -> clamp
Show description for 4519584
FracturedShader
committed
4519584
View commit details
Copy full SHA for 4519584
View code at this point
Browse repository at this point
Update setHSL
Show description for e236cac
FracturedShader
committed
e236cac
View commit details
Copy full SHA for e236cac
View code at this point
Browse repository at this point
BitmapData.update causes a snowballing memory leak under WebGL due to a Context.getImageData call. BitmapData.clear used to call update automatically but no longer does. This resolves the issue of …
Show description for 609b38c
photonstorm
committed
609b38c
View commit details
Copy full SHA for 609b38c
View code at this point
Browse repository at this point
Commits on Sep 29, 2015
BitmapData.clear now automatically calls BitmapData.update at the end of it.
photonstorm
committed
8899edd
View commit details
Copy full SHA for 8899edd
View code at this point
Browse repository at this point
Commits on Sep 7, 2015
BitmapData.move, moveH and moveV have a new optional `wrap` argument allowing you to control if the contents of the BitmapData are wrapped around the edges (true) or simply scrolled off (false).
photonstorm
committed
d7a4237
View commit details
Copy full SHA for d7a4237
View code at this point
Browse repository at this point
Commits on Aug 20, 2015
JSDocs update.
photonstorm
committed
4fa1ffb
View commit details
Copy full SHA for 4fa1ffb
View code at this point
Browse repository at this point
Commits on Aug 19, 2015
jsdoc fix #2013
photonstorm
committed
994a7da
View commit details
Copy full SHA for 994a7da
View code at this point
Browse repository at this point
BitmapData.drawFull draws the given Game Object or Group to a BitmapData and then recursively iterates through all of its children, including children of Game Objects and Groups. It can draw Text, …
Show description for 103c37c
photonstorm
committed
103c37c
View commit details
Copy full SHA for 103c37c
View code at this point
Browse repository at this point
Commits on Aug 7, 2015
BitmapData.line draws a line to the BitmapData in the color and thickness specified.
Show description for 7fbeb1c
photonstorm
committed
7fbeb1c
View commit details
Copy full SHA for 7fbeb1c
View code at this point
Browse repository at this point
Commits on Aug 6, 2015
Merge pull request #1985 from yahiko00/master
Show description for 62c8705
photonstorm
committed
62c8705
View commit details
Copy full SHA for 62c8705
View code at this point
Browse repository at this point
Update BitmapData.js
Show description for 0416c6a
yahiko00
committed
0416c6a
View commit details
Copy full SHA for 0416c6a
View code at this point
Browse repository at this point
Add extra information for the imageData property.
yahiko00
committed
d412431
View commit details
Copy full SHA for d412431
View code at this point
Browse repository at this point
Commits on Aug 3, 2015
Merging in the CanvasPool changes to the core.
photonstorm
committed
e901fb8
View commit details
Copy full SHA for e901fb8
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.