Git Product home page Git Product logo

painted-palette's Introduction

painted-palette

๐ŸŽจ Painting palettes, one at a time. One single brush, multiple easels to paint on.

Delivered to you by the ponies. Magic is friendship, and friendship is magic!

No additional compilation required, everything already bundled nicely into a single command/package.

If you're running it on Android with Termux, install it from F-Droid, not Google Play!!!

Powered by ESBuild and Deno. Developed by Lightingale Community, Secret r/place Brownies and all contributors.

Goals

  • Web-compliant.
  • Fast to build (within 2 seconds).
  • Fast to deploy (within 30 seconds for all steps combined).
  • Easy to deploy (anyone can run it).
  • No need to install dependencies before running.
  • Automatic updater.
  • Relatively low on memory and CPU.

Installation and running

Please visit kb.ltgc.cc.

Requirements

All of these are taken care of by the helper script without user intervention. Or if you're a Windows user, the comfort bundle.

Deno (recommended)

Recommended for Linux and Mac.

  • Bash
  • cURL
  • Deno 1.30 or later (installed automatically when not available)

Bun

Usable on Linux and Mac.

  • Bash
  • cURL
  • Bun 0.6.14 or later

Node.js

Recommended for Android (Termux).

  • Bash
  • cURL
  • Node.js 18 or later
  • ws (installed automatically)
  • undici (installed automatically)

Development

Dependencies

  • Deno
  • ESBuild
  • kd-tree-javascript
  • Mint Flower/Flame
  • pako.js
  • UPNG.js
  • uuid
  • ws
  • xmldom

Sources

  • cnc.js: The source code for the command and control server.
  • core.js: The core code for the bot.
  • deno.js: Core code wrapped with Deno interfaces.
  • node.js: Core code wrapped with Node interfaces.
  • helper.sh: Spin things up with ease!

painted-palette's People

Contributors

interru avatar poneyclairdelune avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

painted-palette's Issues

No-hassle Proxied Bot Spins

Suggested by @Fauli1221.

Add a helper script to spin bots up with proxies already enabled, allowing one person to spin up groups of bots without getting hit by IP.

Would only support Linux though, for the sake of piece of mind.

MacOs dont work

./palette-bot batch
dyld[1414]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.72.dylib
Referenced from: <97BAD4E2-3813-318B-87BB-5564862AA736> /opt/homebrew/Cellar/node/20.3.0/bin/node
Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.72.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.72.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.72.dylib' (no such file), '/usr/local/lib/libicui18n.72.dylib' (no such file), '/usr/lib/libicui18n.72.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/icu4c/73.2/lib/libicui18n.72.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/73.2/lib/libicui18n.72.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/73.2/lib/libicui18n.72.dylib' (no such file), '/usr/local/lib/libicui18n.72.dylib' (no such file), '/usr/lib/libicui18n.72.dylib' (no such file, not in dyld cache)
./palette-bot: line 30: 1414 Abort trap: 6 $RUNTIME $ADDITIONAL ${RUNTIME}.js "$@"

Browsing behaviour emulation

When active, the browsing contexts will occasionally attempt to browse random Reddit posts on Reddit's front page, and in r/place subreddit. Images in the web page might or might not be loaded as well, that's up for debate.

It's activated by default in single mode, and deactivated by default in batch mode. When in single mode, it can be disabled with the environment variable EXTRA_BROWSING set to 0.

Reduced painter entropy

Pick a valid starting point randomly at the beginning, then only paint pixels and move the centre of focus when the next chosen pixel is within a certain radius, thus reducing entropy.

Building a point cloud with a KD-tree may help, but I'm not sure on its resource consumption.

Colour similarity gate for palette

Add a similarity gate for colours. When picking colours from the RGB colourspace point cloud, there are five attempts, and will fail at each attempt if the distance in RGB colourspace turns out to be too far, stopping any form of white fallout.

The current decided value is 110.851252 (64โˆš3).

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.