r/Python • • Sep 13 '19

I made a python drawing

2.9k Upvotes

139 comments sorted by

164

u/Kintoki74 Sep 13 '19

Absolute madlad

101

u/[deleted] Sep 13 '19

Thanks lol I'm not too advanced so it took 7 hours

87

u/jdero Sep 13 '19

Hey cheers on you for spending 7 hours building something cool. Many people give up with a half finished result, kudos on your diligence and congrats with your end product.

21

u/[deleted] Sep 13 '19

Thanks a lot

2

u/[deleted] Sep 14 '19

How many lines?

30

u/[deleted] Sep 13 '19

Hats off. Masterpiece

16

u/[deleted] Sep 13 '19

Thanks it took 7 hours (I'm not too advanced)

3

u/torvanger Sep 14 '19

I think a lot of people feel like that. What matters is that you can solve the thing you wanna get done.

If you didn't tell us you weren't advanced, nobody would even think it. :)

2

u/n00b760 Sep 14 '19

You are awesome

0

u/[deleted] Sep 13 '19

[deleted]

24

u/[deleted] Sep 13 '19

[removed] — view removed comment

0

u/[deleted] Sep 13 '19

[deleted]

1

u/penatbater Sep 14 '19

Yea, he was making it worse.

21

u/just_just_regrets Sep 13 '19

Its all coming together

4

u/[deleted] Sep 13 '19

Oh yeah

14

u/SnicSnac Sep 13 '19

Code maybe?

5

u/[deleted] Sep 13 '19

Sorry lol I don't wanna share my code because some people might copy it, I used forward() setx() backward() sety() home() def () pendown() penup() and a few others

18

u/virgoerns Sep 13 '19

Of course we'd copy it. There's nothing wrong with copying from each other as long as credit to the original author is given. :)

0

u/[deleted] Sep 13 '19

[deleted]

15

u/[deleted] Sep 13 '19

I don't really find it as impressive as everyone for some reason, and Im only 14 so I don't know how to digitally sign or copyright rules and I'd prefer to just have it on my computer, because I'm proud of it and have a sense of possession over it

7

u/rabaraba Sep 14 '19

Well done for your age!

2

u/[deleted] Sep 14 '19

thanks

1

u/[deleted] Sep 14 '19

thanks

14

u/FrostyJesus Sep 13 '19

Just toss it on GitHub and select a license

5

u/penatbater Sep 14 '19

I'm 29 and I find this impressive (and hilarious) as heck. Pls reconsider lol

4

u/Why_is_that Sep 14 '19

Great work for being so young. Superb comic value and a nice concept.

it would still be great to share your work on Github. I can understand your pride of possessing such a piece of code but sharing allows others to build on your work. One day you may see someone else do something similar and credit you for your initial labor. Often I make a piece of code and I have a lot of pride in it but this fades. Yet sharing the code on github has allowed others to use it as consumers or coders, and I get that sense of pride again. The silly mods I have written have outlived the code I wrote at Amazon. You would be surprised what little piece of code can make others happy or inspire them. Sharing is caring, I hope you post on github.

2

u/[deleted] Sep 14 '19

fair enough! Very good work. Just so you know, in the tech world, when someone does something that others use, they often get credit, and can even become well known for the work they do. But I understand you completely. Good work.

32

u/maelinya Sep 13 '19

Wait this reminds me of that educational programming language from like the 90s with the turtle cursor. Did y'all ever use that? I've got such a dim memory of it.

11

u/[deleted] Sep 13 '19

I believe that was drawn using the python turtle graphics package which is based on logo.

10

u/[deleted] Sep 13 '19

It was with turtle

23

u/jck Sep 13 '19

LOGO. it was amazing

7

u/maelinya Sep 13 '19

It was indeed! I made a playable Who Wants to be a Millionaire with it.

3

u/[deleted] Sep 13 '19

Created by Simon Papat

6

u/__xor__ (self, other): Sep 14 '19

YES

Go to repl.it, click New Repl, select "Python (with Turtle)", click "Create REPL", then run this:

import turtle

t = turtle.Turtle()
t.color('white')
t.left(180)
t.forward(200)
t.left(90)
t.forward(200)
t.right(90)
t.color('red')

for i in range(360):
    t.forward(6.66)
    t.right(1)

t.right(108)

for i in range(5):
    t.forward(723)
    t.left(144)

3

u/lozy9604 Sep 13 '19

Yo that's the first programming experience for me back in 7th grade

2

u/sack_of_dicks Sep 13 '19

LOGO was my first taste of 'programming' back when I was a little kid. When I got my first 'real' software development job my mom framed the output from a LOGO program I did in elementary school that she had saved all these years. It even has my signature and the title "Perfume Bottle" in my kid handwriting at the bottom. It now lives on the desk at my home office.

8

u/trimlimdim Sep 13 '19

Turtle?

8

u/[deleted] Sep 13 '19

Yeah, turtle

8

u/insane_playzYT Sep 13 '19

How long do you reckon turtle would take to learn? I am setting aside tomorrow to learn some more libraries like numpy and turtle

thanks :)

7

u/[deleted] Sep 13 '19

Turtle is really easy actually, you can look up a sheet of commands and its fun to mess with

2

u/[deleted] Sep 13 '19

It can take you (with dedication) literally like an hour to learn

7

u/paintthedaytimeblack Sep 13 '19

It's super easy. As I recall it was originally designed to teach the fundamentals of computer animation way back in like the 70s or something, and the Python version is a recreation of the original. Definitely not made to be computationally efficient, but really fun to play with.

6

u/AfghanRat Sep 13 '19

Could you put the code on github? I'd really love to read it

2

u/[deleted] Sep 13 '19

Sorry I don't wanna share my code its just a ton of definitions and counters

5

u/[deleted] Sep 13 '19

Ah yes, the drawing.

14

u/Synaps4 Sep 13 '19

The drawing for reddit. The drawing made specifically to get karma on reddit. Reddit's drawing.

...That drawing?

2

u/[deleted] Sep 13 '19

I came up with the idea because I saw a kronk meme and I was coding a pixel art mario, and it just clicked

1

u/Synaps4 Sep 13 '19

I'm just quoting the movie :)

Still waiting on someone to finish the next few lines.

1

u/ignorememe Sep 14 '19

Yes, that drawing.

3

u/shardul08 Sep 13 '19

Haha great work dude. Mind sharing the code?

2

u/[deleted] Sep 13 '19

Know what I've been saying I won't but people are asking a lot, do you know how I can do that?

1

u/shardul08 Sep 13 '19

I would suggest GitHub

2

u/FREX122 Sep 13 '19

Where can I buy this?

1

u/[deleted] Sep 13 '19

xd the Atlantic ocean

1

u/FREX122 Sep 13 '19

Is that a thing. If so, a link. If not than can you give me a copy of this beautiful program?

1

u/[deleted] Sep 13 '19

I'm thinking of sharing the code and its not a thing lol

0

u/FREX122 Sep 13 '19

I would like to have the code. Tell me if you are going to share it.

2

u/swapripper Sep 13 '19

Fantastic! Do you mind sharing the code?

1

u/[deleted] Sep 13 '19

I might

2

u/[deleted] Sep 13 '19

I want to do projects like this, but does anyone know if these type of projects can be used to show interviewers what you're capable or would they want something else?

3

u/[deleted] Sep 13 '19

Well I just started high school and did this in 7 hours now my teacher has to give me a separate coding class basically xd because I know python already

2

u/AerobicThrone Sep 13 '19

Can you github this? I would to add it to my scripts and also know how the heck you did it... what libraries?

1

u/[deleted] Sep 13 '19

Turtle

2

u/Mph024 Sep 13 '19

Epic, Please share the code.

2

u/[deleted] Sep 13 '19

I might

2

u/[deleted] Sep 13 '19

Wow! Looks fantastic! Do you share the code? I am interested how you do that in python...🤔🤗

2

u/[deleted] Sep 13 '19

I'm thinking of sharing, also its the turtle library

1

u/[deleted] Sep 13 '19

Thank you. I have just learnt about turtle today, I googled it. I think this would be a nice opportunity for me to do some projects in python like yours!

1

u/[deleted] Sep 13 '19

Its really fun, good luck

2

u/Bottleneck_ram Sep 13 '19

Dude that's really amazing!

1

u/[deleted] Sep 13 '19

Thanks a ton, it took 7 hours back to back

2

u/[deleted] Sep 13 '19

Either Kronk or a shaved David Xanatos?

1

u/[deleted] Sep 13 '19

Kronk

1

u/[deleted] Sep 13 '19

He da man! ;)

2

u/ahmedmokhles Sep 13 '19

That would've taken me 7 years

2

u/[deleted] Sep 13 '19

it took me 7 hours xd

1

u/ahmedmokhles Sep 13 '19

That's impressive! I'm amazed, the first significant thing I made in python took me an entire week (it was just a snake game lol). Keep it up!

2

u/[deleted] Sep 13 '19

Thanks :D

2

u/[deleted] Sep 13 '19

Which library did you use

2

u/[deleted] Sep 14 '19

Turtle

1

u/[deleted] Sep 24 '19

Thanks

6

u/jadams70 Sep 13 '19

I really still can't get over people who know how to program but don't know how to record their screen

3

u/[deleted] Sep 13 '19

Lol, I just took a video to send to my friend, but then he said hey you should post that on reddit, so I did

4

u/CompSciSelfLearning Sep 13 '19

Perhaps you can provide them with the knowledge.

2

u/i4mn30 Sep 15 '19

On Ubuntu, there's this awesome app called ScreenRecorder.

On Windows, there tonnes of options. Just google.

On Mac - I think it has a native app to do this.

Also you can try Cloudly cloud based screen sharing app, install it in Chrome as an extension.

2

u/MagnitskysGhost Sep 13 '19

For anyone wondering, there's a nice free tool called ShareX that's perfect for little things like this. Has a portable version, too.

72

u/treetyoselfcarol Sep 13 '19

Pull the lever Kronk!

30

u/solaceinsleep Sep 13 '19

WRONG LEVEEEEEEEEEER!!!

2

u/Professional_Memmer Sep 13 '19

very nice

2

u/[deleted] Sep 13 '19

thanks

1

u/VictorZhangQ Sep 13 '19

You're a painter, whatever tools you use. I even if can't draw it on the paper, obviously nothing will happen with python

1

u/[deleted] Sep 13 '19

Bro, I'm 14 and I have no artistic ability. This took seven hours of mistakes and wrong angles, it all comes down to trial and error and dedication

1

u/VictorZhangQ Sep 14 '19

You did well! I, as a programmer, am proud of you. Keep learning with Python.

1

u/[deleted] Sep 15 '19

Thanks :D im trying to learn processing now, its so different

1

u/sanchez_uragan Sep 13 '19

Can you share code?

1

u/[deleted] Sep 13 '19

Thinking about it

1

u/ris794 Sep 13 '19

How do you even do this? (Nice btw!) Do you do all the code in the Python IDLE and have a plugin or something?

2

u/[deleted] Sep 13 '19

I'm in a 9th grade coding class and they have a specific python for turtle in their website so I don't have to install anything

1

u/munocat Sep 13 '19

I have been programming in python 4 months, and I only managed print(‘hello’). Well done.

2

u/[deleted] Sep 13 '19

Lol I took a coding class in middle school but all I got out of it was access to python, I learned everything on my own

1

u/[deleted] Sep 13 '19

Btw thanks to everyone for the support also I'm considering sharing the code and some people asked, this took 7 hours, its the turtle library and I'm 14

0

u/i4mn30 Sep 15 '19

I want to see how you automated the pixel perfect movements of the turtle.

1

u/[deleted] Sep 15 '19

Trial and error

0

u/i4mn30 Sep 15 '19

Post code, we'll see. Thanks.

1

u/farooq_fox Sep 13 '19

Amazing !
Code please ?

1

u/[deleted] Sep 13 '19

Thinking about it, and thanks :D

2

u/3369fc810ac9 Sep 13 '19

"Ooh! Ooh! I know, I know! Isma! Isma's in your chair!!"

2

u/King_Solomon_Doge Sep 13 '19

Should add to actual soft as Easter Egg

2

u/Conrad_noble Sep 13 '19

I love seeing code in motion.

2

u/[deleted] Sep 13 '19

“Mission accomplished” - Kronk

2

u/Randolpho Sep 13 '19

Anyone remember Logo from back in the 80s? That's what this reminds me of. Turtle graphics

2

u/KingAster Sep 13 '19

If you like drawing in Python you should checkout Python mode for Processing!

https://processing.org

https://py.processing.org

and also the subreddit r/processing.

2

u/WreckitRab Sep 13 '19

Oh, right. The poison. The poison for Kuzco, the poison chosen especially to kill Kuzco, Kuzco's poison. That poison?

2

u/fungsway Sep 13 '19

memes are evolving

2

u/Casssis Sep 13 '19

Better than the Mona Lisa

2

u/edsxbr01 Sep 13 '19

I love turtle .

2

u/VarenGrey Sep 13 '19

Oh yeah, it's all coming together.

2

u/jtosbornexxx Sep 13 '19

Would look even better if you used screen recording software !

2

u/streetburner Sep 14 '19

Inspirational

2

u/zaaaark Sep 14 '19

This is pybulous 😍

2

u/SayaNevermind Sep 14 '19

Looks like you're using turtle, good job

2

u/Ciocomo Sep 14 '19

Try "processing" too !

2

u/i4mn30 Sep 15 '19

This meme has to become an emoji so I can do a logger.info() with instead of shitty success strings.

2

u/DIYBrotha Feb 04 '20

This is sick! Haha wow didnt know you can draw with python. I gotta try this now haha

1

u/chuckycastle Sep 13 '19

Camel or it doesn’t count

1

u/[deleted] Sep 14 '19

Link for the code pls. Nice

1

u/ConsistentDrawer Sep 14 '19

you know you can use a screen recorder, right?

1

u/Sharon_dev Sep 13 '19

Ooooh yeah

1

u/shadfc Sep 13 '19

Take your upkronk

1

u/znpy Sep 13 '19

It's all coming together

0

u/Chetanoo Sep 13 '19

Nice!

1

u/[deleted] Sep 13 '19

Thanks lol

-3

u/gzimhelshani Sep 13 '19

Thanks lol I'm not to advanced so it took 7 hours.

0

u/[deleted] Sep 13 '19

[deleted]

3

u/[deleted] Sep 13 '19

Kronk

0

u/[deleted] Sep 13 '19

[deleted]

27

u/Orakin Sep 13 '19

We need a meme IDE that automatically draws this when you successfully run the whole script

0

u/[deleted] Sep 13 '19

[deleted]

2

u/[deleted] Sep 13 '19

Thanks lol I'm 14 it took 7 hours with turtle