Post 24247 by ivesen@miniwa.moe
(DIR) More posts by ivesen@miniwa.moe
(DIR) Post #24164 by bryan@mstdn.io
2018-09-14T23:33:02Z
0 likes, 0 repeats
i spent 3+ hours on making a fucking spinner in javascript
(DIR) Post #24172 by ivesen@miniwa.moe
2018-09-14T23:33:28.961878Z
0 likes, 1 repeats
@bryan but does it do the spinny spin
(DIR) Post #24176 by bryan@mstdn.io
2018-09-14T23:33:37Z
0 likes, 0 repeats
yes, reallyI needed a canvas spinner but all of them suck ass so I fixed one I found on CodePen and ran into a shit ton of problems ugh
(DIR) Post #24179 by jsalvador@mastodon.social
2018-09-14T23:33:55Z
0 likes, 0 repeats
@bryan Welcome to JavaScript world :-) Have you tried to use CSS?
(DIR) Post #24193 by bryan@mstdn.io
2018-09-14T23:34:54Z
0 likes, 0 repeats
@jsalvador N/AI needed this for a case where only either canvas data or an image itself would work
(DIR) Post #24202 by jsalvador@mastodon.social
2018-09-14T23:35:24Z
0 likes, 0 repeats
@bryan Interesting... And what was your solution?
(DIR) Post #24242 by bryan@mstdn.io
2018-09-14T23:37:35Z
0 likes, 0 repeats
BUT THE SPINNER WORKS!
(DIR) Post #24247 by ivesen@miniwa.moe
2018-09-14T23:37:57.098765Z
0 likes, 0 repeats
@bryan why not just make it a gif? :blobpeek:
(DIR) Post #24250 by bryan@mstdn.io
2018-09-14T23:38:06Z
0 likes, 0 repeats
@ivesen eh?
(DIR) Post #24251 by gumcap@todon.nl
2018-09-14T23:38:10Z
0 likes, 1 repeats
@bryan Looks good.
(DIR) Post #24258 by crushv@letsalllovela.in
2018-09-14T23:38:23.804716Z
0 likes, 1 repeats
@bryan wheres the video its stuck loading for me
(DIR) Post #24266 by bryan@mstdn.io
2018-09-14T23:38:37Z
1 likes, 0 repeats
@crushv lol
(DIR) Post #24270 by ivesen@miniwa.moe
2018-09-14T23:38:48.057357Z
0 likes, 0 repeats
@bryan instead of using a spinner, why not just use a gif? that animates the spinny thing :v
(DIR) Post #24301 by bryan@mstdn.io
2018-09-14T23:40:16Z
0 likes, 0 repeats
@ivesen N/AI needed to generate a spinner from a canvas, a gif *could* work but its animation support in native UIs is iffy at best
(DIR) Post #24321 by bryan@mstdn.io
2018-09-14T23:41:19Z
0 likes, 0 repeats
@ivesen also, it needed to be scalable to fit different screen resolutions.GIF doesn't cut it, unless you use a massive image (very heavy!) or chunk it down by size (i.e. 16x, 24x, 256x, etc.) which is a pain
(DIR) Post #24322 by virtual@letsalllovela.in
2018-09-14T23:41:15.133899Z
1 likes, 0 repeats
@bryan does it do the spinning?
(DIR) Post #24323 by bryan@mstdn.io
2018-09-14T23:41:26Z
0 likes, 0 repeats
@virtual see thread
(DIR) Post #24327 by ivesen@miniwa.moe
2018-09-14T23:41:56.447399Z
0 likes, 0 repeats
@bryan pfft, dpi scaling is a sham
(DIR) Post #24329 by virtual@letsalllovela.in
2018-09-14T23:42:07.703717Z
1 likes, 1 repeats
@bryan oo spinny thing!
(DIR) Post #24335 by bryan@mstdn.io
2018-09-14T23:42:35Z
0 likes, 0 repeats
@ivesen :P
(DIR) Post #24354 by ivesen@miniwa.moe
2018-09-14T23:44:07.313836Z
0 likes, 0 repeats
@bryan asvg is the way forward
(DIR) Post #24362 by bryan@mstdn.io
2018-09-14T23:44:19Z
0 likes, 0 repeats
@ivesen whatever