sure, but thats just outsourcing the problem.
hello
sure, but thats just outsourcing the problem.
i love how well this joke works
:) no problem! i would assume resizing the image might be a little slower, because it creates a clone of the image, but if you use FilterType::NearestNeighbor, the speed is negligable in my opinion
i read through the code, and i have some tips, which you may find helpful (or not):
--color
is not the first argument, it will try to open a file named --color
, which i assume is unintended. i would suggest checking out the clap
crate to easily parse argsimage.resize()
is easier.len()
on a string returns length in bytes, not characters, so could break with non-ascii text. in the context of this program, the text will always be ascii, so it is of course not a problem, but it’s worth to keep in mind. to get character length, use .chars().count()
get_brightness_of_cluster
, pushing to a Vec
and then calling .sum()
can be replaced with a loop which increments a mutable u32
variable. this is a nitpick, but it can avoid unnecessary memory allocationcheck out this example. sorry if this comes off as rude or a nitpick, i’m just trying to provide some advice :)
destroying america!!!
why would you be against 4th of July and children?
haskell is an intricately designed laser gun that you cant shoot it without a learning group theory and lambda calculus
however, it is still used and endorsed by every army
if your desktop environment uses alt+f4 to quit 💀
should have used Rust instead. that way you never talk to a friend in the first place
this is a common misconception, although the may ramble a bit, they are very classy
stop taking our jobs
discord cdn link 💀💀💀
no frills? javascript is frills
ho, mi estas konfuza, ĉar vi parolas kiel ili estas alia homo
mi ne scias kiu Varik estas.
ah ok. i was using vim vixen
A knife is reusable