Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
fb85fc50
Commit
fb85fc50
authored
Aug 21, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乱图 渲染
parent
20423d60
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4864 additions
and
8 deletions
+4864
-8
import_map.json
import_map.json
+3
-0
js_dom_run.js
js_dom_run.js
+4857
-3
package-lock.json
package-lock.json
+1
-1
run.js
run.js
+2
-3
sss.js
sss.js
+1
-1
No files found.
import_map.json
0 → 100644
View file @
fb85fc50
{
"jsdom"
:
"https://esm.sh/jsdom"
}
\ No newline at end of file
js_dom_run.js
View file @
fb85fc50
This diff is collapsed.
Click to expand it.
package-lock.json
View file @
fb85fc50
...
...
@@ -318,7 +318,7 @@
},
"node_modules/canvas"
:
{
"version"
:
"2.11.2"
,
"resolved"
:
"https://registry.npm
js.org
/canvas/-/canvas-2.11.2.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/canvas/-/canvas-2.11.2.tgz"
,
"integrity"
:
"sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw=="
,
"hasInstallScript"
:
true
,
"dependencies"
:
{
...
...
run.js
View file @
fb85fc50
...
...
@@ -11,6 +11,5 @@ const ctx = canvas.getContext('2d', {
ctx
.
drawImage
(
img
,
0
,
0
)
let
unint8Array2
=
new
Uint8Array
(
90000
);
ctx
.
readPixels
(
50
,
0
,
100
,
128
,
6408
,
5121
,
unint8Array2
);
ctx
.
getImageData
(
50
,
0
,
100
,
128
);
console
.
log
(
unint8Array2
+
''
)
\ No newline at end of file
let
tt
=
ctx
.
getImageData
(
50
,
0
,
100
,
128
);
console
.
log
(
tt
.
data
+
''
)
\ No newline at end of file
sss.js
View file @
fb85fc50
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment