Skip to content

Instantly share code, notes, and snippets.

View IMB11's full-sized avatar
🎉
finally exams are done

Calum H. IMB11

🎉
finally exams are done
View GitHub Profile
@dev-hydrogen
dev-hydrogen / Easing.java
Last active March 24, 2024 19:48
Various Easings in java
import java.util.function.Function;
import static java.lang.Math.*;
// https://easings.net/
// https://gist.github.com/dev-hydrogen/21a66f83f0386123e0c0acf107254843
public enum Easing {
easeInSine(x -> 1 - cos(x * PI) / 2),
easeOutSine(x -> sin(x * PI) / 2),
easeInOutSine(x -> -(cos(PI * x) - 1) / 2),
According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?