Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
MAC_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2021-05-01 05:10:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac8ec2dc8e8db2e7f4e23f79701c9cd4e9be9030
ac8ec2dc
1 parent
48976748
gif 생성 example
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
gif-generator/examples/tui/index.html
gif-generator/examples/tui/index.html
View file @
ac8ec2d
...
...
@@ -63,6 +63,30 @@
setTimeout
(
function
()
{
gifGenerator
=
new
GifGenerator
(
imageEditor
.
_graphics
.
getCanvas
());
},
1000
);
function
render
()
{
gifGenerator
.
make
().
then
(
(
blob
)
=>
{
window
.
open
(
window
.
URL
.
createObjectURL
(
blob
));
},
(
error
)
=>
{
alert
(
error
);
}
);
}
</script>
<button
style=
"
position: absolute;
top: 70px;
right: 70px;
border: 1px solid #fff;
background: rgba(0, 0, 0, 0);
color: #fff;
padding: 10px 20px;
"
onClick=
"render();"
>
GIF 생성
</button>
</body>
</html>
...
...
Please
register
or
login
to post a comment