-
Notifications
You must be signed in to change notification settings - Fork 0
/
painter.html
164 lines (141 loc) · 3.24 KB
/
painter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<title>Painter: A GPU-Driven painting program</title>
<style>
.title {
font-size: 6em;
font-weight: bold;
text-align: center;
line-height: 1;
margin: unset;
}
.title2 {
font-size: 3em;
text-align: center;
line-height: 1;
}
.centered {
text-align: center;
}
.subtitle {
font-size: 1.5em;
text-align: center;
}
.sub-subtitle {
font-size: 1em;
text-align: center;
}
.download-button {
display: flex;
flex-direction: row;
flex-wrap: wrap;
text-align: center;
justify-content: center;
font-size: 2em;
background-color: #008700;
color: white;
padding: 15px 32px;
}
.flex-row {
display: flex;
flex-direction: row;
justify-content: center;
gap: 5em;
}
.flex-row-scaled {
display: flex;
flex-direction: row;
justify-content: center;
gap: 5em;
width: 30%
}
.flex-col {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0em;
}
img {
width: 100%;
}
@media(max-width:1200px) {
.flex-row {
flex-direction: column;
gap: 0em;
}
}
</style>
<div class="flex-row">
<div class="flex-col">
<p class="title"> Painter
<p class="subtitle"> A GPU-Driven Painting Program</p>
<ul>
<li>Multi-Layer
<li>Disk-Persistent undo-redo
<li>Filters
<li>Free Lasso/Line/Gradient
<li>2D Transformation
<li>Line and Gradient tools
<li>Time lapse generation
<li>Built-in gallery
</ul>
<hr>
</div>
<p> <img class="img" src="images/painter/painter.png">
</div>
<hr>
<div class="flex-row">
<div>
<p class="title2">Transformation</p>
<p class="subtitle">
Here a new layer is crated, then transformed.<br>
The transformation can be freely manipulated or sheared.
</p>
</div>
<p> <video width="100%" controls autoplay loop> <source src="images/painter/transform.mp4">
</div>
<hr>
<div class="flex-row">
<div>
<p class="title2">Applying Filters</p>
<p class="subtitle">
Various filters are available like brightness and blur.<br>
Both work directly on the GPU using computer shaders.
</p>
</div>
<p> <video width="100%" controls autoplay loop> <source src="images/painter/filter.mp4">
</div>
<hr>
<div class="flex-row">
<div>
<p class="title2">Free Lasso</p>
<p class="subtitle">
Here the free lasso is used to select part of the image.<br>
Then the line, gradient, and transform tools are used.
</p>
</div>
<p> <video width="100%" controls autoplay loop> <source src="images/painter/lasso.mp4">
</div>
<hr>
<div class="flex-col">
<div>
<p class="title2">Timelapse Generation</p>
<p class="subtitle">
A timelapse can be generated for the painting
</p>
</div>
<div class="flex-row">
<p> <video width="100%" controls autoplay loop> <source src="images/painter/tomato.mp4">
<div class="flex-row-scaled">
<p> <video width="100%" controls autoplay loop> <source src="images/painter/light.mp4">
</div>
</div>
</div>
<hr>
<P> Made using
<a href=https://ziglang.org>Zig</a>
<a href=https://github.com/floooh/sokol>sokol</a>
<a href=https://github.com/lz4/lz4>lz4</a>
<a href=https://github.com/nothings/stb>stb</a>
space-around
<hr>
<a href=index.html>Home</a> <a href=https://twitter.com/thabetx>Twitter</a> <a href=https://github.com/thabetx>GitHub</a>