help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
star-pattern-maker
/
js
RSK World
star-pattern-maker
Star Pattern Maker - HTML5 Canvas + 3D Rendering + Physics Simulation + AI Patterns + Generative Audio + Modern UI + Glassmorphism Design
js
  • 3d-engine.js3.8 KB
  • ai-patterns.js5.6 KB
  • animations.js1.4 KB
  • audio.js1.3 KB
  • controls.js12.2 KB
  • export.js3.9 KB
  • filters.js3.5 KB
  • fractals.js3.5 KB
  • gallery.js2.5 KB
  • main.js1.9 KB
  • particles.js1.4 KB
  • physics.js1.7 KB
  • presets.js2.8 KB
  • randomizer.js1.4 KB
  • renderer.js7 KB
  • shaders.js6.5 KB
  • shapes.js1.7 KB
  • sound-gen.js4.4 KB
  • state.js1.9 KB
  • symmetry.js3.9 KB
  • themes.js1.4 KB
  • timeline.js4.2 KB
  • utils.js546 B
presets.js
js/presets.js
Raw Download
Find: Go to:
/* V12 Presets Module - Full State Presets */
import { state } from './state.js';

export const PRESETS = [
    {
        name: "Cosmic Snowflake",
        spikes: 8,
        outerRadius: 180,
        innerRadius: 90,
        fractalMode: true,
        fractalDepth: 3,
        fillColor: "#00d4ff",
        fillColor2: "#ff00ff",
        strokeColor: "#ffffff",
        bgColor: "#000033",
        glow: 25,
        useGradient: true,
        echoEnabled: true
    },
    {
        name: "Neon Kaleidoscope",
        spikes: 6,
        outerRadius: 150,
        innerRadius: 60,
        kaleidoscopeMode: true,
        segments: 8,
        fillColor: "#ff0080",
        fillColor2: "#00ff80",
        strokeColor: "#ffff00",
        bgColor: "#000000",
        glow: 30,
        rainbowMode: true,
        speed: 5
    },
    {
        name: "Organic Pulse",
        spikes: 5,
        outerRadius: 200,
        innerRadius: 100,
        curve: 50,
        twist: 30,
        pulseEnabled: true,
        fillColor: "#00ff88",
        fillColor2: "#88ff00",
        strokeColor: "#ffffff",
        bgColor: "#001a00",
        glow: 15,
        trailEnabled: true
    },
    {
        name: "Chaotic Grid",
        spikes: 12,
        outerRadius: 80,
        innerRadius: 40,
        wallpaperMode: true,
        cols: 5,
        rows: 4,
        fillColor: "#ff3366",
        fillColor2: "#3366ff",
        strokeColor: "#ffffff",
        bgColor: "#0a0a0a",
        speed: 8,
        jitter: 5
    },
    {
        name: "Holographic Star",
        spikes: 7,
        outerRadius: 160,
        innerRadius: 80,
        fillColor: "#ff00ff",
        fillColor2: "#00ffff",
        strokeColor: "#ffffff",
        bgColor: "#000000",
        glow: 40,
        useGradient: true,
        holographicMode: true,
        echoEnabled: true,
        echoCount: 4
    }
];

/**
 * Apply a preset to the global state
 */
export function applyPreset(index) {
    const preset = PRESETS[index];
    if (!preset) return;

    // Reset modes first
    state.wallpaperMode = false;
    state.kaleidoscopeMode = false;
    state.fractalMode = false;
    state.audioMode = false;
    state.rainbowMode = false;
    state.pulseEnabled = false;
    state.parallaxEnabled = false;
    state.trailEnabled = false;
    state.echoEnabled = false;
    state.gravityEnabled = false;
    state.orbitEnabled = false;
    state.chromaticAberration = false;
    state.holographicMode = false;

    // Apply preset values
    Object.keys(preset).forEach(key => {
        if (key !== 'name' && state.hasOwnProperty(key)) {
            state[key] = preset[key];
        }
    });

    // Dispatch event for UI sync
    window.dispatchEvent(new CustomEvent('presetChanged', { detail: preset }));
}
114 lines•2.8 KB
javascript

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer