GithubHelp home page GithubHelp logo

snek's Introduction

hi there hello it's me fishes, the guy who accidentally got himself into making dark mode (man i just made a layout how did we get here)

anyway first huge shoutout to llama, yk the guy who made the 38 second classic tas, who did basically everything smart in this project man invented dark mode

i just did some compacting which may or may not decrease efficiency and made some customization oh well and i made my hud, which i like

so yeah llama

anyway here's how to use it

window.snake.dark(); // this makes it dark mode, no arguments

window.snake.scheme({ scoreBar: '#rrggbb', // hex code for score bar, defaults to the default color if omitted background: '#rrggbb', // hex code for background, defaults to score bar color if omitted walls: '#rrggbb', // hex code for border and wall mode walls, defaults to default color shadows: '#rrggbb', // hex code for snake and fruit shadows, defaults to default lightSquares: '#rrggbb', // hex code for the light board squares, defaults to default darkSquares: '#rrggbb', // hex code for the dark board squares, defaults to default }); // if not given any arguments, it will be the default scheme (with the page background the same color as the score bar)

window.snake.fishesHUD({ background: '#rrggbb', // hex code for background of input display (recommended to use the same color as scheme background) showInputDisplay: boolean, // true/false, whether to show the input display arrows: boolean, // true/false, true to show arrows in the input display, false for wasd darkModeGang: boolean, // true/false, whether to show the dark mode emblem burgerGang: boolean, // true/false, whether to show the burger mode emblem showLilSebastianImages: boolean, // true/false, whether to show the images of lil sebastian (idk why this exists lol) }); // if not given any arguments, it will be my favorite layout (for dark mode)

snek's People

Contributors

fizhes avatar

Forkers

darksnakegang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.