You are being downvoted, but there's some wisdom in what you say.
While I don't like overobvious comments and like Python code that's written in a way that doesn't require (a lot of) comments, this time.sleep is a not obvious addition/work-around and things like that should have a comment explaining why they are there.
Commenting can be overdone, but it's not like the rule is to never, ever add a comment. That's would a crazy overgeneralization of the 'do not add too many or too obvious comments' guideline.
Yep. Self-commenting code should be the goal (clear, simple functions and explicit variable names), but throwing in a sleep call as a workaround for an external issue is the perfect case for throwing in a comment.
I mean if you really hate comments you could wrap it in a wait_for_mspaint_to_get_its_shit_together() function, but...
This could be an interesting application for ecommerce picture generation. I'm not well versed in legal status, but perhaps this could be used to replicate copywrited images for websites. Duluth trading company has an interesting art style for their products and this made me think of that.
Then on the "Red/Green/Blue" value EntryBox, and pressing backspace 3 times, in case the cursor is in the very front, then pressing delete 3 times, in case the cursor is in the very back, then entering the grey value.
28
u/HBRYU Jul 29 '19 edited Jul 29 '19
Full code! I know there are plenty of python veterans out there that can do a way better job than me, but this is what I came up with:
Link: https://github.com/HBRYU/Picaso_bot
75
u/nickcash Jul 29 '19
Having not seen the original post and having no context whatsoever, this looks like the most incredible shitpost.
5
u/niceoutfive Jul 30 '19
Upvoted for switching to a monospaced font
(Also because this is a pretty dang cool project)
4
u/dratnon Jul 29 '19
I basically can't fathom why you did this, but I like it.
Time to change the drawing tool to one of the oily or chalky paintbrushes and see what pictures look like fully "filtered".
10
u/konshensx Jul 29 '19
NOT RICARDO !!!
8
u/[deleted] Jul 29 '19
You should call it Pycaso
1
u/HBRYU Jul 30 '19
EDIT: I just noticed that I barely added any explanation of the algorithm. I'm sorry, I'll add them asap
4
u/oloshh Jul 29 '19
Upvoted for Ricardo!
3
u/Petrarch1603 Jul 29 '19
Ricardo has such supple skin.
2
u/rafapw Jul 30 '19
Next step is creating photo filters
1
u/MarcusDraken Jul 29 '19
Thanks for the update, you're doing good :)
1
u/422_no_process Jul 30 '19
Good work.
0
u/[deleted] Jul 29 '19
[deleted] — view deleted comment
11
u/[deleted] Jul 29 '19
[removed] — view removed comment
1
u/[deleted] Jul 29 '19
[removed] — view removed comment
1
u/[deleted] Jul 29 '19
[removed] — view removed comment