大约有 226 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
...(function() { var Graphics = Laya.Graphics; var Sprite = Laya.Sprite; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var colors = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var liveGraphics; var canvasGr...
来源: Laya_示例 发布时间: 20241118
...numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brow...
来源: Laya2.0_示例 发布时间: 20241118
...t laya.ui.Label; import laya.events.Event; import laya.utils.Browser; import laya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import lay...
来源: Laya_社区 发布时间: 20170921
... laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;//保存截屏后返回的HtmlCanvas对象 private var texture:Texture ;//texture实例,用...
来源: Laya_社区 发布时间: 20170822
...ya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Browser; import laya.utils.Stat; import laya.utils.Timer; import threeDimen.common.CameraMoveScript; import threeDimen.common.CameraStat; import threeDimen.common.SpriteMoveScript; import threeDimen.common.SpriteStat; public ...
来源: Laya_社区 发布时间: 20170331
...DE让项目开发更高效。class Sprite_Cache { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH ...
来源: Laya2.0_示例 发布时间: 20241118
...iveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.s...
来源: Laya2.0_示例 发布时间: 20241118
... { Laya.init(600,400); let body = laya.utils.Browser.document.body; let input = laya.utils.Browser.createElement("input"); input.type = "file"; input.id = "photo"; body.appendChild(input); Laya.l...
来源: Laya_社区 发布时间: 20161114
...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Render = Laya.Render; var stageWidth = 800; var stageHeight = 600; var Matter = Browser.window.Matter; var LayaRender = Browser.window.LayaRender; var mouseConstraint; var en...
来源: Laya_示例 发布时间: 20241118
... Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var sp; var preRadian = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_M...
来源: Laya_示例 发布时间: 20241118