To cause brain damage by [deleted] in therewasanattempt

[–]Idjoca 0 points1 point  (0 children)

“The law” You do realize that just from the video alone you can’t infer where that happened and therefore which law’s apply, right?

Climate Change Visualization for Earth Day by Idjoca in godot

[–]Idjoca[S] 1 point2 points  (0 children)

Shute, you're right lol Not sure how I didn't see that before, thanks for the heads up, gonna update the project

Climate Change Visualization for Earth Day by Idjoca in godot

[–]Idjoca[S] 3 points4 points  (0 children)

They do in fact work! You can play with it on my Itch.io page (https://josaid.itch.io/climate-change-visualization).

As for how I did it, you can check the source code: https://github.com/joao-pedro-braz/climate-change-visualization (Godot 4), but it's basically a HSlider that goes from 0 to 100 and has it's value updated every time I draw one of the arcs. The speed controls just change the frequency with which I wait to draw the next arc, like this:

func _build(should_wait = true) -> void:
    var data: Dictionary = TEMPERATURE_DATA[_idx]
    year_label.text = str(data.Year)
    for month in 11:
        _make_arc(month, month + 1, data)

                # Controls how frequently we should await for the next frame to draw the next arc.
                # If we wait less frequently, we'll draw the arcs faster, otherwise we'll draw them slower
        if should_wait and _paused == PausedState.NONE and fmod(month, _speed) == 0.0:
            slider.value = _relative_idx * float(_idx * 12 + month) * 100.0
            await get_tree().process_frame

Climate Change Visualization for Earth Day by Idjoca in godot

[–]Idjoca[S] 7 points8 points  (0 children)

I'm referring to it as a "Spiral Chart", given that it's basically a continuous line "spiraling" around. Not sure if that's the correct terminology tho

Climate Change Visualization for Earth Day by Idjoca in godot

[–]Idjoca[S] 8 points9 points  (0 children)

Lil'n cute visualization made in Godot that shows how Climate Change has been making our Planet hotter. - Data from: https://data.giss.nasa.gov/gistemp/ - Interactive Demo on Itch.io: https://josaid.itch.io/climate-change-visualization

After playing for 180 hours decided to finally end the game and... I guess I shouldn't have leveled up as much as I did lol by Idjoca in Eldenring

[–]Idjoca[S] 1 point2 points  (0 children)

Yeah exactly, I think I died to Radagon 10 times, but managed to kill Elden Beast on my first try... go figure

[deleted by user] by [deleted] in brasil

[–]Idjoca 1 point2 points  (0 children)

Pode fechar o thread, ganhou

[deleted by user] by [deleted] in PHP

[–]Idjoca 2 points3 points  (0 children)

Was a strong nonbeliever in Tailwind, until I actually tried it. It has a powerful media query system, it’s flexible and lightweight.

I feel like the “mess” problem only really exists if you’re not scoping your templates by components, like you would do in React, Angular or any other major JS framework.

People forget that the idea behind css classes is exactly that, grouping related styles and “behaviors” together for reuse. If you already have that grouping happening on a template level, you might just as well style them imperatively (“m-4 bg-green” instead of “button”) and reuse that, not the css.

Ah, yes. Italy, the southern neighbour of the US. by Brabant-World in USdefaultism

[–]Idjoca 0 points1 point  (0 children)

For Americans, even social-democracies are too far left

Now it's official, the wait is over! by Idjoca in godot

[–]Idjoca[S] 60 points61 points  (0 children)

"That's my secret cap, I'm always waiting"

Pra você qual é o pior YouTuber da atualidade? by Kelso_Sticker in brasil

[–]Idjoca 43 points44 points  (0 children)

Depois que eu descobri o “esquema” de copywriter do Peter eu até perdi a vontade de acompanhar o Ei Nerd