Skip to content

Commit

Permalink
Add dev container configuration, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
boronine committed Dec 8, 2023
1 parent 63dfe6a commit c9dec7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Ruby",
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.0-bullseye"
}
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[![Build Status](https://travis-ci.org/hsluv/hsluv-ruby.svg)](https://travis-ci.org/hsluv/hsluv-ruby)
[![Gem Version](https://badge.fury.io/rb/hsluv.svg)](http://badge.fury.io/rb/hsluv)
[![Ruby](https://github.com/hsluv/hsluv-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/hsluv/hsluv-ruby/actions/workflows/ruby.yml)
[![Gem Version](https://img.shields.io/gem/v/hsluv.svg)](https://rubygems.org/gems/hsluv)

A Ruby implementation of [HSLuv](http://www.hsluv.org).
A Ruby implementation of [HSLuv](https://www.hsluv.org).

## Demo

![Demo](http://i.imgur.com/GTsNT8u.gif)

Demo link: http://www.hsluv.org/syntax/#006925

## Installation

Add this line to your application's Gemfile:
Expand Down Expand Up @@ -65,10 +63,10 @@ Hsluv.rgb_to_hsluv(0.99, 6.84e-14, 8.79e-16)

For HPLuv (the pastel variant), use:

- `hpluv_to_hex`
- `hpluv_to_rgb`
- `hex_to_hpluv`
- `rgb_to_hpluv`
- `hpluv_to_hex`
- `hpluv_to_rgb`
- `hex_to_hpluv`
- `rgb_to_hpluv`

## Testing

Expand Down

0 comments on commit c9dec7d

Please sign in to comment.