Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.