大约有 422 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
Laya_社区(275) Laya3.0_api(94) Laya2.0_文档(19) laya_api(8) Laya3.0_文档(8) Laya2.0_api(8) Laya2.0_示例(6) Laya_示例(4)
...wPentagram() { var canvas = new Sprite(); Laya.stage.addChild(canvas); var path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); path.push(0, 73); path.push(-85, 130); path.push(-55, 32); path.push(-137, -30); path.push(-33, -33); canvas.graph...
来源: Laya_示例 发布时间: 20241124
...三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_DrawPath { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALI...
来源: Laya2.0_示例 发布时间: 20241124
...port ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; pub...
来源: Laya_社区 发布时间: 20171129
...n() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "../../res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "../../res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); as...
来源: Laya_示例 发布时间: 20241124
...n() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); assets.push( {...
来源: Laya2.0_示例 发布时间: 20241124
...te(); Laya.stage.addChild(canvas); var path: Array<number> = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); ...
来源: Laya_社区 发布时间: 20171102
...nt = <Point>{ x: -1, y: -1 }; /** 路径X轴投影间距 */ private _path_space_x: number; /** 路径Y轴投影间距 */ private _path_space_y: number; /** 路径长度 */ private _path_length: number; // toset: /** 路径的长度范围 */ private _path_min: number = 100; private _path_max: n...
来源: Laya_社区 发布时间: 20180515
...F3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var liveGraphics; var canvasGraphics; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); ...
来源: Laya_示例 发布时间: 20241124
...port ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _p...
来源: Laya_社区 发布时间: 20171113
...EC8A49", "#AF3666", "#F6C84C", "#4C779A"], colorCount = 0, isDown = false, path = [], color = colors[0], liveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya...
来源: Laya2.0_示例 发布时间: 20241124