— Smoothstep
— Clamp
.
Please open Telegram to view this post
VIEW IN TELEGRAM
— Another implementation
— Degrees to radians
— Mix Vectors
— What's Arctan?
.
Please open Telegram to view this post
VIEW IN TELEGRAM
.
Please open Telegram to view this post
VIEW IN TELEGRAM
.
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4🤡4 3 1 1 1
— https://github.com/haashemi/painter
.
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥5 4🤡3 2 1 1
— github.com/haashemi/painter
.
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4🤡4 1 1 1 1
(1920-1200=720)px— github.com/haashemi/painter
.
Please open Telegram to view this post
VIEW IN TELEGRAM
FillColor—— Renders a flat color on the image.
painter.Render(img, painter.FillColor(color.RGBA{A: 255}))
Decode—— Decodes the image with type of png, jpeg, and webp.
img, err := painter.Decode(f)
Writer.
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥3🤡3 3 1 1 1
Writer in the right way, I should have some knowledge about them first.— stdlib packages:
—— x/image/font
—— x/image/font/opentype
—— x/image/font/sfnt
— Docs, Articles, blogs, etc.
—— Naming table (OpenType)
—— Naming table Example
—— FreeType Glyph Conventions
🔹 This post will be edited until I start the implementation.
.
Please open Telegram to view this post
VIEW IN TELEGRAM
Realtime Colors
Visualize your color palettes on a real website.
⚡ Realtime Colors
🔹 You may already know it. But I finally used it tonight, and it's so damn good!
🪄 https://www.realtimecolors.com
.
🔹 You may already know it. But I finally used it tonight, and it's so damn good!
🪄 https://www.realtimecolors.com
.
🤡7 5👎1 1 1 1
⭐️ TGO is now stable!
🔹| Its Bot API is now on v7.0 (which was released just ~3 hours ago!)
🔹| Almost all of its methods and types are fully documented (thanks to the contributors)
🤪 | And ready to use in production!
🪄 https://github.com/haashemi/tgo
🔹| Its Bot API is now on v7.0 (which was released just ~3 hours ago!)
🔹| Almost all of its methods and types are fully documented (thanks to the contributors)
🪄 https://github.com/haashemi/tgo
Please open Telegram to view this post
VIEW IN TELEGRAM
✨ Painter is now using NRGBA
Yesterday, I've been trying to do a color conversion on some images [here]. Everything seemed to be right, except the output images. (see the example image)
After about an hour of struggling with the code, I found out that it's because of Golang's PNG encoder!
🔸 but why? Well, the Go team has already described it (way better than I possibly could) in their blog post at the end of the Colors and Color Models section.
🪄 Blogpost: https://go.dev/blog/image
— 🎨 Painter —
Yesterday, I've been trying to do a color conversion on some images [here]. Everything seemed to be right, except the output images. (see the example image)
After about an hour of struggling with the code, I found out that it's because of Golang's PNG encoder!
🔸 but why? Well, the Go team has already described it (way better than I possibly could) in their blog post at the end of the Colors and Color Models section.
🪄 Blogpost: https://go.dev/blog/image
— 🎨 Painter —
🔹 Drawing methods will be +1.3 times faster after doing some API changes. (more details, soon)
🔹 The change is planned to be pushed within the next week.
🪄 [github.com/haashemi/painter]
Please open Telegram to view this post
VIEW IN TELEGRAM
🔹 This update came for just two reasons:
— More simplicity
— More performance
🔥 Release notes: [CLICK HERE]
🪄 [Painter]
Please open Telegram to view this post
VIEW IN TELEGRAM
haashemi.dev
Please open Telegram to view this post
VIEW IN TELEGRAM
🔹 Well... Yeah, the implementation of Writer has been cancelled, but Painter will still get its updates!
🔸 Its performance is the same as linear gradient; on the R9 5900HS, it is ~10ms for a single 1920x1080 image.
🔻 There are still a few small differences in the orientations compared to Adobe Photoshop, but it works for now! (I have to do research about it for sure.)
🪄 [Painter]
Please open Telegram to view this post
VIEW IN TELEGRAM