social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

489
active users

#svg

21 posts14 participants1 post today

🌘 Svggles:使用 SVG 打造互動插圖
➤ 簡化 SVG 互動插圖開發流程
svggles.vercel.app/
Svggles 是一個 React 工具包,專門用來使用 SVG 創建互動式插圖。它提供了一系列功能,例如動畫效果(發光、旋轉、形變)和互動行為(滑鼠追蹤、滾動觸發),方便開發者快速製作引人注目的視覺效果。Svggles 已經發布為 npm 上的 `interactive-illustrations` 套件,方便安裝和使用。
+ 哇,這個套件看起來很棒!對想用 SVG 做出一些特別效果的開發者來說,簡直是救星。
+ 之前用 SVG 實現互動效果一直很麻煩,有了 Svggles 應該能大大提高效率。
#JavaScript #React #SVG #開發工具

svggles.vercel.appVite + React + TS
Continued thread

This effectively pushes all pixels except for those with alphas originally in the [.4, .6] interval (which now stretch across the [0, 1] interval) to either 0 or 1, whichever is closer.

Now you may be wondering why not do this from the start instead of those first two primitives.

Well, because without knowing the blur radius in px (something that's not really possible without JS if we set it in container query or viewport units), we can't know what interval to map to.🤷‍♀️

#SVG#CSS#filter
Continued thread

To fix this, we give the assembly a tiny blur.

We don't want blurry edges👇 either, so we push some of the semitransparent edge pixels to either 0 or 1, whichever is closer. To do so, we use another `feComponentTransfer` and map the [0, 1] alpha interval to [-2, 3]. Basically we're stretching the alpha interval to be 5 times bigger, keeping same midpoint (.5), then it's clamped to [0, 1].

#SVG#filter#CSS
Continued thread

Enter the #SVG #filter!

`feComponentTransfer` allows us to manipulate individual RGBA channels. In this case just the alpha (via `feFuncA`) by making all assembly pixels whose alpha is below `.5` fully transparent (alpha = 0). And all other pixels fully opaque (alpha = 1).

This makes edges jagged. 💀

Maybe not so noticeable in some cases, but it often won't cut it.

The ZX Spectrum was launched 1983 as #Timex Sinclair 2068 computer on the US market. With a #Z80A CPU running on 3.5 MHz this beautiful #homecomputer was capable to draw electric images on a regular telly. With a resolution of 256×192 #pixels even limited to 15 colours it was great for the budget.
https://youtu.be/iemMlbIY1SI

Print'n'Plotter sold their #graphics software under the same product name #Paintbox like #Quantel, but for #Sinclair #homecomputers. While #colourClash was a serious limitation in the 80s, it's a #8bit #cgi #glitch effect today available in smartphone camera apps.

Our #vector #graphic #illustration of this legendary #retrocomputer is a form of #digital #lithography. #IT's made in #svg tech and created with #Inkscape, not #Adobe #Illustrator #Ai
The first Apple Watch was introduced 1995.
It's #contemporary #design is standing out after 30 years, still. While it was deeply integrated into #MacOS System 7.5, it's not one of their digital #gadgets. This #anniversary seems to be perfect to revisit and redraw some shacky lines and seconds in corporate #history of #AppleComputers.
https://youtu.be/AR5DUrI994Q

#Apple lost me as #proUser when they rejected my third warranty case in a row.
To rebuild the #AppleWatch from scratch in #vectorgraphics I prefer #Inkscape #SVG #copyleft on #Linux #FOSS over #Adobe #Illustrator #Ai #IP #copyright #software.

Go get the best #vector #designer #app
https://inkscape.org
and you can draw freely #retrocomputer #illustrations like we do.
#SUN-Microsystems, Inc. was co-founded 1982 by #AndyBerchtoldsheim and existed until #Oracle takeover 2010. The company developed #RISC computer #hardware , components, software like #JAVA, and contributed much more to the #opensource development than #Apple #computers.

Our colorful #svg #retrocomputer terminal #illustration and portrait of Mr. Berchtoldsheim was made with #FOSS #vectorgraphic #design tool #Inkscape, not #Adobe #Illustrator #Ai #IP #DRM #BS #SW