Skip to content

Instantly share code, notes, and snippets.

View GalaxyAX's full-sized avatar
🎯
Focusing

GalaxyAX GalaxyAX

🎯
Focusing
View GitHub Profile
@realvjy
realvjy / ChoasLinesShader.metal
Last active December 2, 2025 08:11
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
//
// AirPodsMaxAnimation.swift
// OpenvisionOS
//
// Created by Amos Gyamfi on 12.11.2023.
//
import SwiftUI
import RealityKit
import RealityKitContent
@alexwidua
alexwidua / ContentView.swift
Created July 4, 2023 17:07
SwiftUI Grid Animation
import SwiftUI
// 1. Use looped H/VStacks to create a grid
// 2. Conditionally increase spacing to grow/shrink the grid
// 3. Calculate the distance of each dot to the center and use the value to stagger the animation
//4. Add random delay on top of the staggered delay value
struct ContentView: View {
// const & state