
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Ombre provides gradients for your terminal between any number of RGB values.
This will only look good on terminals that support 24bit colors, for now.
Add to Gemfile
:
gem 'ombre'
and run bundle install
.
In Ruby do:
require 'ombre'
There are four main functions available for Ombre
:
# colors in the below functions should be an array of 24 bit hexidecimal RGB values as strings.
# Returns the block of text marked up with colors to create a horizontal gradient from left to right
Ombre.horizontal(text, colors)
Ombre.horizontal("############\n# #\n# Horiz. ###\n# Ombre ####\n# Test #####\n# From #####\n# Red ######\n# To #######\n# Blue #####\n# #\n############", ["FF0000", "0000FF"])
# Returns the block of text marked up with colors to create a vertical gradient from top to bottom
Ombre.vertical(text, colors)
Ombre.vertical("############\n# #\n# Vertical #\n# Ombre ####\n# Test #####\n# From #####\n# Red ######\n# To #######\n# Blue #####\n# #\n############", ["FF0000", "0000FF"])
# Returns the block of text marked up with colors to create a diagonal gradient from top-left to bottom-right
Ombre.diagonal(text, colors)
Ombre.diagonal("############\n# #\n# Diagonal #\n# Ombre ####\n# Test #####\n# From #####\n# Red ######\n# To #######\n# Blue #####\n# #\n############", ["FF0000", "0000FF"])
# Returns the block of text marked up with colors to create a diagonal gradient from bottom-left to top-right
Ombre.diagonal_up(text, colors)
Ombre.diagonal_up("############\n# #\n# Diagonal #\n# Ombre ####\n# Test #####\n# From #####\n# Red ######\n# To #######\n# Blue #####\n# #\n############", ["FF0000", "0000FF"])
Copyright (c) 2022 Justin Paulson, released under the MIT license.
FAQs
Unknown package
We found that ombre demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.