Giter Club home page Giter Club logo

color-scripts's People

Contributors

actionless avatar different55 avatar dwordptr avatar stark avatar tezkerek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

color-scripts's Issues

Pipes

Is there a way to keep the scripts up to date? pipes.sh has changed hands and received a few fixes since the version included in this repo. There are also a few more scripts now maintained in the same place

pinguco does not render colors

pinguco output:

    [1m[31m ██████[0m
   [1m[31m██[0m██[0m[34m██[0m[1m[31m██[0m[34m██[0m
   [1m[31m██[0m██[34m██[0m[1m[31m██[0m[34m██[0m
   [1m[31m██████[0m[35m██████[0m
   [1m[31m████[0m████[1m[31m██[0m
 [1m[31m████[0m████████[1m[31m██[0m
 [1m[31m████[0m████████[1m[31m██[0m
 [1m[31m████[0m████████[1m[31m██[0m
   [1m[31m████[0m████[1m[31m██[0m

color slice script

Here's something I wrote to test xterm, if you'd like it.

#!/usr/bin/env bash

# Print a slice of color like:
# ________________
# |green      red|
# |              |
# |cyan   magenta|
# ----------------
#
# It should look smooth if your terminal supports enough colors.

#clear
b=0

get_screen_size()
{
  local sizes=$(stty size)
  if [ $? = 0 ] ; then
    set $sizes
    screen_rows="$1"
    screen_cols="$2"
  fi
}

get_screen_size

rows=$((screen_rows - 2))
cols=$((screen_cols - 1))
blue_step=$((255 / rows))
red_green_step=$((255 / cols))

row=0
b=0
while [ $row -lt $rows ] ; do
  col=0
  r=0
  g=255
  while [ $col -lt $cols ] ; do
    #printf "\e[38;2;${r};${g};${b}m#"
    printf "\e[48;2;${r};${g};${b}m "
    r=$((r + red_green_step))
    g=$((g - red_green_step))
    col=$((col + 1))
  done
  printf "\e[0m\n"
  b=$((b + blue_step))
  row=$((row + 1))
done
printf "\e[0m"
exit 0

Some of the color scripts don't run

There's this nifty one-liner I found at https://github.com/dexpota/kitty-themes:

COLOR_SCRIPT_REPO=https://api.github.com/repos/stark/Color-Scripts/contents/color-scripts
wget -q -O - $(curl -s $COLOR_SCRIPT_REPO | jq '.[] | "\(.path) \(.download_url)"' -r | cut -d " " -f2) | bash

I see a bunch of errors. Some of them might need there execute bit set.

I reproduced some of the errors by running this:

for i in *; do echo $i; echo $i >> colors.err; ./$i 2>> colors.err; done

...

hex
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
hex-block
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

...

pinguco
zsh: permission denied: ./pinguco
pipes1
./pipes1: line 182: read: 0.05: invalid timeout specification

...

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.