u/SkAssasin

How would you optimize drawing thousants of squares with tkinter?

I am making a 2d cave generation script out of boredom and I've just added a method for showing the map visually. My current scripts works with a 2d array of numbers and it loops through it and draws a different colored square for each number with it's color and position based on the number and it's order in the arrays. The main problem is that the approach is currently drawing literal tens of thausants of squares when i turn it on (I'm testing with a 150x150 map rn and am scared to go higher). How could I optimize this?

Current code:

def draw_map(self, file_mame):
    for y in range(self.map_height):
        for x in range(self.map_width):
            self.c.create_rectangle(x * self.sqr_size, y * self.sqr_size, (x + 1) * self.sqr_size, (y + 1) * self.sqr_size, width = 0, fill = self.gfx_dict[self.map[y][x]])
    self.c.mainloop()
reddit.com
u/SkAssasin — 12 hours ago

Had a middle school graduation exams today. I tend to doodle on my hand when stressed

u/SkAssasin — 1 day ago
▲ 8 r/aiwars

Genuine question - is the majority of posts/comments on this sub just ad hominem?

Lowkey feels like it - especially with artworks (from both sides).

reddit.com
u/SkAssasin — 3 days ago

Gimme some OCs to drawww

Need some ocs to draw when I get bored. I'll prob chip away on whatever you send whenever I'll have time, but I AM biased and I WILL prioritize female ocs, ocs in suits/coats, and steampunk style ocs (I'll prob draw your oc even if they're neither of those things so please feel free to post)

u/SkAssasin — 6 days ago
▲ 2 r/HairStyleAdvice+1 crossposts

Would something like this look good?

Was watching this anime and I dunno why, but I just really like how this bit of long hair on the side looks. Do yall think it'd be worth it to try and grow my hair like that or would it just look completely ass?

Also if I tried it, it would prob be without the bangs/fringe/the hair in the front (english is not my first language, ok?), so like just in case would that change anything?

Edit: i don't want to change my hair color, just the hair style.

u/SkAssasin — 6 days ago
▲ 45 r/snakes

Would a grass snake be a good pet? + what should I know before getting one?

I've started watching some snake content recently (Fishingarrett, Clint's Reptiles) and it got me from "snakes scawyy" to "snakes cute as hell". The main issue tho was that what I considered cool/cute were all really bad ideas (black/green mamba, blue insularis, king cobra). Then I had the great idea to look at what snakes are in my home country (the hell that is slovakia) and found this guy - Grass Snake!

These guys should be non venomous (which is very good cuz I am like the EXACT type of guy to get bitten by a snake if I ever owned one) and they look so cute with their design. Also, there's just smth really cute and funny to me about the fact that one of their forms of self defense seems to be playing dead.

Is this fella a good pet snake to get for someone who doesn't know shit about snakes and would ideally want to actually be able to hold their snake instead of just looking at it from a safe distance? Is it even legal in slovakia? (idk where to check) Do yall who might own it have any tips or just tips in general? Are there some other cool non venomous snakes to consider?

u/SkAssasin — 10 days ago

Mages, girls, and steampunk style characters will prob take priority. Do what you want with this imformation.

u/SkAssasin — 16 days ago
▲ 5 r/CompetitiveMinecraft+1 crossposts

For context, me and my friends were playing some team deathmatches when this fucker Joshua started team killing me with carts. So I was like fuck it, we are going mace 1v1. I'm not good at mace in the general way, hell, I can't even properly mace stationary targets. What I am good though, is everything survival related. So sit back and enjoy this peak mind control that my other friend clipped out of the fight.

u/SkAssasin — 20 days ago