大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0076 秒)
Laya_社区(974) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3)
...dex])continue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight); else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,textu...
来源: Laya_社区 发布时间: 20180228
...rarchy UIComponent Image Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX cente...
来源: Laya3.0_api 发布时间: 20231115
...ya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg); 我们再次刷新页面看看有什么效果 嗯 看来图片出来了~~~不错 现在我们可以开始继续了 //===============...
来源: Laya_社区 发布时间: 20160722
...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...
来源: Laya3.0_api 发布时间: 20231102
...rchy Sprite MovieClip Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize basePath hitTestPrior interval loop mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components...
来源: Laya3.0_api 发布时间: 20231115
...ite(); this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0); function on_down(event) { console.log("_____ kbRing2\n"); } } function laya_test()...
来源: Laya_社区 发布时间: 20161221
...2D图像。 Sprite 是基本的显示图形的显示列表节点。 通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。Sprite针对不同的情况做了渲染优化,所以保证一个类实现...
来源: Laya3.0_文档 发布时间: 20240528
...; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*...
来源: Laya_社区 发布时间: 20180323
...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dr...
来源: Laya2.0_示例 发布时间: 20240930
...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...
来源: Laya3.0_api 发布时间: 20231102