腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
0
回答
canvas
fillRect
不
工作
、
、
this.x = x; update = function(){ context.
fillRect
浏览 6
提问于2016-07-22
得票数 0
1
回答
createjs html5画布集成不起作用
、
、
我尝试将w3school html5
canvas
与flash导出createjs集成,我只是在createjs输出中添加了这段代码。var ctx =
canvas
.getContext("2d"); ctx.
fillRect
(0,0,150,75);var
canvas
, stage, exportRo
浏览 0
提问于2016-05-31
得票数 0
1
回答
未绘制本机画布
fillRect
。
、
、
、
React, { useRef, useEffect } from 'react';import
Canvas
from 'react-native-
canvas
'; const ref = useRef(null); useEffectconst ctx = ref.current.getContext('2d
浏览 14
提问于2022-07-30
得票数 0
1
回答
FillRect
()
不
工作
、
、
/front view { for(int i = 0; i < xPosTargets.size(); i++) g.
fillRect
//top view for(int i =
浏览 3
提问于2016-02-10
得票数 0
回答已采纳
3
回答
.fillStyle不起作用,我的代码有问题吗?或者用.fillStyle代替画布?
、
、
var canvasContext console.log("Hello World"); canvasContext =
canvas
.getContext('2d'); canvasContex
浏览 0
提问于2018-06-13
得票数 0
回答已采纳
1
回答
DrawImage不会在第一帧加载
、
、
它快把我逼疯了,我不知道它为什么
不
这么做!requestAnimFrame( gameUpdate ); }//doesn't display on first fame
canvas
['
canva
浏览 0
提问于2012-12-06
得票数 0
回答已采纳
2
回答
画布-新形状会出现错误的颜色
、
、
我试图制作一个小游戏,游戏中有几个不同颜色的形状,但我遇到了一个问题,我设法把这个问题归结为js代码:
canvas
.width= window.innerWidth;conte
浏览 0
提问于2021-04-19
得票数 0
回答已采纳
1
回答
HTML5 Javascript画布旋转JSFiddle不会以相同的结果运行相同的代码
、
、
、
()当我重写代码时,我正在理解代码是如何
工作
的。下面是链接中的:var ctx =
canvas
.getContext('2d'); bctx.translate(30, 30);bctx.fillStyle = 'rgb(255, 0, 0)'; bctx.
fillR
浏览 1
提问于2013-08-16
得票数 0
回答已采纳
3
回答
画布
fillRect
()
不
工作
、
var
canvas
= function(width, height, color){ this.height = height; var instance = document.createElement('
canvas
');
浏览 2
提问于2017-06-18
得票数 3
回答已采纳
1
回答
d3 javascript -为什么我的随机数不起作用?
、
particlesDepthBlur
不
工作
了?<
canvas
id="
canvas
"></
canvas
><script> var
canvas
= document.getElementById(&q
浏览 0
提问于2013-10-09
得票数 0
回答已采纳
3
回答
画布
fillRect
不
工作
、
0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] forctx.fillStyle = "#999787"; c
浏览 0
提问于2018-03-15
得票数 0
回答已采纳
2
回答
无法找到如何使css/js掩码在流星中
工作
。
、
、
、
、
我认为jquery已经包含在Meteor中了,如果我在"Client“代码部分中使用$或document.getElementById,它就会
工作
,但是对于后者,我要么获得一个null,而后者没有定义$下面是我的项目中掩蔽的javascript代码: var context =
浏览 3
提问于2016-03-07
得票数 0
回答已采纳
1
回答
我可以在画布元素上绘制,而
不
破坏之前在它上绘制的内容吗?
、
、
假设我想在画布上画点什么: ctx.
canvas
.width = 100; ctx.
fillRect
浏览 2
提问于2011-08-29
得票数 1
回答已采纳
1
回答
无法使用重复模式在画布上获取要重复的图像
、
下面是我的代码的两个版本:function draw() { varctx =
canvas
1.getContext('2d'); var ctx2 =
canvas
2.getContext('2d
浏览 12
提问于2019-11-14
得票数 0
1
回答
Canvas
fillRect
()未填充定义的
canvas
、
、
、
我正在扩展一个
Canvas
并将它添加到一个JFrame中。我知道AWT和Swing不应该混在一起,在JPanel上绘图是最好的,但我正在尝试学习游戏引擎教程,我想坚持它,因为到目前为止我已经让它
工作
了。
Canvas
将minimumSize、maximumSize和prefferedSize设置为550, 400的维度。(0, 0, 550, 400); graphics.
fillRect
(0, 0, 150, 40); grap
浏览 5
提问于2013-02-05
得票数 1
回答已采纳
1
回答
HTML画布不显示我的矩形
、
<html lang="en"> <meta charset="utf-8"> window.onload = function(){ c.
fillRect
= (20,
浏览 5
提问于2014-10-08
得票数 0
回答已采纳
1
回答
js画布创建模式重复问题
但是,当重复值为repeat时,它可以
工作
。ctx.fillStyle = ctx.createPattern(assets.grassRightTexture, 'repeat-y'); ctx.
fillRect
(dimensions.left
浏览 4
提问于2022-09-21
得票数 0
回答已采纳
1
回答
为什么JS画布会出现,但没有更新呢?
、
、
canvas
元素被正确地添加到DOM中(由于虚线边框,我可以看到它),并且它被正确地定位。我还可以看到控制台消息“刷新”,这意味着间隔
工作
。 let ctx =
canvas
.getContext("2d");
canvas
.height= setInterval(() => {
浏览 5
提问于2022-09-13
得票数 0
3
回答
Javascript仅在调用的函数中
工作
、
、
canvas
) { alert('Error:
Canvas
context does not exist!')";} 虽然这个
浏览 1
提问于2013-11-08
得票数 0
回答已采纳
3
回答
delphi :如何在字符串网格中更改单元格的颜色?
、
、
TGridDrawState);begin StringGrid1.
Canvas
.
FillRect
:= clGreen;
Canvas
.TextOut(Rect.Left+2,Rect.Top+2,Cells不能
工作
。如果我在代码下面
不
活动,我可以
浏览 2
提问于2011-07-15
得票数 14
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
微信小程序 画布
14-HTMLcanvas>标签
HTML5&CSS3初学者指南(4)–Canvas使用
Canvas 基本功能-画矩形
javascript实现刮刮卡
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券