Class: Graphics
画像の処理を行うための静的クラス。
Properties:
Name |
Type |
Description |
BLEND_ADD |
Number |
[static] The alias of PIXI.blendModes.ADD. |
BLEND_NORMAL |
Number |
[static] The alias of PIXI.blendModes.NORMAL. |
BLEND_MULTIPLY |
Number |
[static] The alias of PIXI.blendModes.MULTIPLY. |
BLEND_SCREEN |
Number |
[static] The alias of PIXI.blendModes.SCREEN. |
frameCount |
Number |
[static] The total frame count of the game screen. |
width |
Number |
[static] The width of the game screen. |
height |
Number |
[static] The height of the game screen. |
boxWidth |
Number |
[static] The width of the window display area. |
boxHeight |
Number |
[static] The height of the window display area. |
scale |
Number |
[static] The zoom scale of the game screen. |
_width |
Number |
[static] |
_height |
Number |
[static] |
_rendererType |
String |
[static] |
_boxWidth |
Number |
[static] |
_boxHeight |
Number |
[static] |
_scale |
Number |
[static] |
_realScale |
Number |
[static] |
_errorPrinter |
Boolean |
[static] |
_canvas |
HTMLCanvasElement |
[static] |
_video |
HTMLVideoElement |
[static] |
_upperCanvas |
HTMLCanvasElement |
[static] |
_renderer |
PIXI.SystemRenderer |
[static] |
_fpsMeter |
FPSMeter |
[static] |
_modeBox |
HTMLDivElement |
[static] |
_skipCount |
Number |
[static] |
_maxSkip |
Number |
[static] |
_rendered |
Boolean |
[static] |
_loadingImage |
HTMLImageElement |
[static] |
_loadingCount |
Number |
[static] |
_fpsMeterToggled |
Boolean |
[static] |
_stretchEnabled |
Boolean |
[static] |
_canUseDifferenceBlend |
Boolean |
[static] |
_canUseSaturationBlend |
Boolean |
[static] |
_hiddenCanvas |
Number |
[static] |
Methods
(static) _applyCanvasFilter ()
(static) _cancelFullScreen ()
(static) _centerElement (element)
Parameters:
Name |
Type |
Description |
element |
HTMLElement |
|
(static) _clearUpperCanvas ()
(static) _createAllElements ()
(static) _createCanvas ()
(static) _createErrorPrinter ()
(static) _createFontLoader (name)
Parameters:
Name |
Type |
Description |
name |
String |
|
(static) _createFPSMeter ()
(static) _createGameFontLoader ()
(static) _createModeBox ()
(static) _createRenderer ()
(static) _createUpperCanvas ()
(static) _createVideo ()
(static) _defaultStretchMode ()
(static) _disableTextSelection ()
(static) _isFullScreen () → {Boolean}
Returns:
- Type
-
Boolean
(static) _isVideoVisible () → {Boolean}
Returns:
- Type
-
Boolean
(static) _makeErrorHtml (name, message) → {String}
Parameters:
Returns:
- Type
-
String
(static) _modifyExistingElements ()
(static) _onKeyDown (event)
Parameters:
Name |
Type |
Description |
event |
KeyboardEvent |
|
(static) _onTouchEnd (event)
Parameters:
Name |
Type |
Description |
event |
TouchEvent |
|
(static) _onVideoEnd ()
(static) _onVideoError ()
(static) _onVideoLoad ()
(static) _onWindowResize ()
(static) _paintUpperCanvas ()
(static) _playVideo (src)
Parameters:
Name |
Type |
Description |
src |
String |
|
(static) _requestFullScreen ()
(static) _setupEventHandlers ()
(static) _switchFPSMeter ()
(static) _switchFullScreen ()
(static) _switchStretchMode () → {Boolean}
Returns:
- Type
-
Boolean
(static) _testCanvasBlendModes ()
(static) _updateAllElements ()
(static) _updateCanvas ()
(static) _updateErrorPrinter ()
(static) _updateRealScale ()
(static) _updateRenderer ()
(static) _updateUpperCanvas ()
(static) _updateVideo ()
(static) _updateVisibility (videoVisible)
Parameters:
Name |
Type |
Description |
videoVisible |
Boolean |
|
(static) callGC ()
Calls pixi.js garbage collector
(static) canPlayVideoType (type) → {Boolean}
Checks whether the browser can play the specified video type.
Parameters:
Name |
Type |
Description |
type |
String |
The video type to test support for |
Returns:
True if the browser can play the specified video type
- Type
-
Boolean
(static) canUseCssFontLoading ()
(static) canUseDifferenceBlend () → {Boolean}
Checks whether the canvas blend mode ‘difference’ is supported.
Returns:
True if the canvas blend mode ‘difference’ is supported
- Type
-
Boolean
(static) canUseSaturationBlend () → {Boolean}
Checks whether the canvas blend mode ‘saturation’ is supported.
Returns:
True if the canvas blend mode ‘saturation’ is supported
- Type
-
Boolean
(static) endLoading ()
Erases the “Now Loading” image.
(static) eraseLoadingError ()
Erases the loading error text.
(static) hasWebGL () → {Boolean}
Checks whether the current browser supports WebGL.
Returns:
True if the current browser supports WebGL.
- Type
-
Boolean
(static) hideFps ()
Hides the FPSMeter element.
(static) initialize (width, height, type)
Initializes the graphics system.
Parameters:
Name |
Type |
Description |
width |
Number |
The width of the game screen |
height |
Number |
The height of the game screen |
type |
String |
The type of the renderer. ‘canvas’, ‘webgl’, or ‘auto’. |
(static) isFontLoaded (name) → {Boolean}
Checks whether the font file is loaded.
Parameters:
Name |
Type |
Description |
name |
String |
The face name of the font |
Returns:
True if the font file is loaded
- Type
-
Boolean
(static) isInsideCanvas (x, y) → {Boolean}
Checks whether the specified point is inside the game canvas area.
Parameters:
Name |
Type |
Description |
x |
Number |
The x coordinate on the canvas area |
y |
Number |
The y coordinate on the canvas area |
Returns:
True if the specified point is inside the game canvas area
- Type
-
Boolean
(static) isVideoPlaying () → {Boolean}
Checks whether the video is playing.
Returns:
True if the video is playing
- Type
-
Boolean
(static) isWebGL () → {Boolean}
Checks whether the renderer type is WebGL.
Returns:
True if the renderer type is WebGL
- Type
-
Boolean
(static) loadFont (name, url)
Loads a font file.
Parameters:
Name |
Type |
Description |
name |
String |
The face name of the font |
url |
String |
The url of the font file |
(static) pageToCanvasX (x) → {Number}
Converts an x coordinate on the page to the corresponding x coordinate on the canvas area.
Parameters:
Name |
Type |
Description |
x |
Number |
The x coordinate on the page to be converted |
Returns:
The x coordinate on the canvas area
- Type
-
Number
(static) pageToCanvasY (y) → {Number}
Converts a y coordinate on the page to the corresponding y coordinate on the canvas area.
Parameters:
Name |
Type |
Description |
y |
Number |
The y coordinate on the page to be converted |
Returns:
The y coordinate on the canvas area
- Type
-
Number
(static) playVideo (src)
Starts playback of a video.
Parameters:
Name |
Type |
Description |
src |
String |
|
(static) printError (name, message)
Displays the error text to the screen.
Parameters:
Name |
Type |
Description |
name |
String |
The name of the error |
message |
String |
The message of the error |
(static) printLoadingError (url)
Displays the loading error text to the screen.
Parameters:
Name |
Type |
Description |
url |
String |
The url of the resource failed to load |
(static) render (stage)
Renders the stage to the game screen.
Parameters:
Name |
Type |
Description |
stage |
Stage |
The stage object to be rendered |
(static) setLoadingImage ()
Sets the source of the “Now Loading” image.
(static) setVideoVolume (value)
Sets volume of a video.
Parameters:
Name |
Type |
Description |
value |
Number |
|
(static) showFps ()
Shows the FPSMeter element.
(static) startLoading ()
Initializes the counter for displaying the “Now Loading” image.
(static) tickEnd ()
Marks the end of each frame for FPSMeter.
(static) tickStart ()
Marks the beginning of each frame for FPSMeter.
(static) updateLoading ()
Increments the loading counter and displays the “Now Loading” image if necessary.
Documentation generated by JSDoc 3.5.5
Menu
RPGツクールMV JavaScript 非公式リファレンスClass: ArrayClass: AudioManagerClass: BattleManagerClass: BitmapClass: CacheEntryClass: CacheMapClass: ConfigManagerClass: DataManagerClass: DecrypterClass: Game_ActionClass: Game_ActionResultClass: Game_ActorClass: Game_ActorsClass: Game_BattlerClass: Game_BattlerBaseClass: Game_CharacterClass: Game_CharacterBaseClass: Game_CommonEventClass: Game_EnemyClass: Game_EventClass: Game_FollowerClass: Game_FollowersClass: Game_InterpreterClass: Game_ItemClass: Game_MapClass: Game_MessageClass: Game_PartyClass: Game_PictureClass: Game_PlayerClass: Game_ScreenClass: Game_SelfSwitchesClass: Game_SwitchesClass: Game_SystemClass: Game_TempClass: Game_TimerClass: Game_TroopClass: Game_UnitClass: Game_VariablesClass: Game_VehicleClass: GraphicsClass: Html5AudioClass: ImageCacheClass: ImageManagerClass: InputClass: JsonExClass: MV.AudioParametersClass: MV.BattleLogMethodClass: MV.BattleRewardsClass: MV.BattlerAnimationClass: MV.CommandItemClass: MV.ConfigDataClass: MV.DatabaseFileClass: MV.MatrixClass: MV.MotionClass: MV.PluginSettingsClass: MV.SaveContentsClass: MV.SaveFileInfoClass: MV.TextStateClass: MV.TouchInputEventsNamespace: MVClass: MathClass: NumberClass: PIXI.ContainerClass: PIXI.DisplayObjectClass: PIXI.GraphicsClass: PIXI.SpriteClass: PluginManagerClass: PointClass: RPG.ActorClass: RPG.Animation.TimingClass: RPG.AnimationClass: RPG.ArmorClass: RPG.AudioFileClass: RPG.BaseItemClass: RPG.BattleEventPage.ConditionsClass: RPG.BattleEventPageClass: RPG.Class.LearningClass: RPG.ClassClass: RPG.CommonEventClass: RPG.DamageClass: RPG.EffectClass: RPG.Enemy.ActionClass: RPG.Enemy.DropItemClass: RPG.EnemyClass: RPG.EquipItemClass: RPG.EventClass: RPG.EventCommandClass: RPG.EventPage.ConditionsClass: RPG.EventPage.ImageClass: RPG.EventPageClass: RPG.ItemClass: RPG.Map.EncounterClass: RPG.MapClass: RPG.MapInfoClass: RPG.MetaDataClass: RPG.MoveCommandClass: RPG.MoveRouteClass: RPG.SkillClass: RPG.StateClass: RPG.System.AttackMotionClass: RPG.System.TermsClass: RPG.System.TestBattlerClass: RPG.System.VehicleClass: RPG.SystemClass: RPG.TilesetClass: RPG.TraitClass: RPG.Troop.MemberClass: RPG.TroopClass: RPG.UsableItemClass: RPG.WeaponNamespace: RPGClass: RectangleClass: RequestQueueClass: ResourceHandlerClass: SceneManagerClass: Scene_BaseClass: Scene_BattleClass: Scene_BootClass: Scene_DebugClass: Scene_EquipClass: Scene_FileClass: Scene_GameEndClass: Scene_GameoverClass: Scene_ItemClass: Scene_ItemBaseClass: Scene_LoadClass: Scene_MapClass: Scene_MenuClass: Scene_MenuBaseClass: Scene_NameClass: Scene_OptionsClass: Scene_SaveClass: Scene_ShopClass: Scene_SkillClass: Scene_StatusClass: Scene_TitleClass: ScreenSpriteClass: ShaderTilemapClass: SoundManagerClass: SpriteClass: Sprite_ActorClass: Sprite_AnimationClass: Sprite_BalloonClass: Sprite_BaseClass: Sprite_BattlerClass: Sprite_ButtonClass: Sprite_CharacterClass: Sprite_DamageClass: Sprite_DestinationClass: Sprite_EnemyClass: Sprite_PictureClass: Sprite_StateIconClass: Sprite_StateOverlayClass: Sprite_TimerClass: Sprite_WeaponClass: Spriteset_BaseClass: Spriteset_BattleClass: Spriteset_MapClass: StageClass: StorageManagerClass: StringClass: TextManagerClass: TilemapClass: TilingSpriteClass: ToneFilterClass: ToneSpriteClass: TouchInputClass: UtilsClass: WeatherClass: WebAudioClass: WindowClass: WindowLayerClass: Window_ActorCommandClass: Window_BaseClass: Window_BattleActorClass: Window_BattleEnemyClass: Window_BattleItemClass: Window_BattleLogClass: Window_BattleSkillClass: Window_BattleStatusClass: Window_ChoiceListClass: Window_CommandClass: Window_DebugEditClass: Window_DebugRangeClass: Window_EquipCommandClass: Window_EquipItemClass: Window_EquipSlotClass: Window_EquipStatusClass: Window_EventItemClass: Window_GameEndClass: Window_GoldClass: Window_HelpClass: Window_HorzCommandClass: Window_ItemCategoryClass: Window_ItemListClass: Window_MapNameClass: Window_MenuActorClass: Window_MenuCommandClass: Window_MenuStatusClass: Window_MessageClass: Window_NameEditClass: Window_NameInputClass: Window_NumberInputClass: Window_OptionsClass: Window_PartyCommandClass: Window_SavefileListClass: Window_ScrollTextClass: Window_SelectableClass: Window_ShopBuyClass: Window_ShopCommandClass: Window_ShopNumberClass: Window_ShopSellClass: Window_ShopStatusClass: Window_SkillListClass: Window_SkillStatusClass: Window_SkillTypeClass: Window_StatusClass: Window_TitleCommandGlobalクラスツリー