Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Logerfo committed Sep 27, 2019
1 parent 4f14fc7 commit 84a79d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.1.7 - 2019-09-27

- Support for zero-less float for `new Color` (e.g. `.5f`).
- Fixed some float values being invalid for `new Color` because it would lead to a non-integer number when multiplied by 255. Those numbers are now floor rounded.
- Fixed Unity's `new Color` and `new Color32` targeting `a, r, g, b` instead of `r, g, b, a` (#25).

## 0.1.6 - 2019-09-27

- Support for Unity `Color32` (#25).
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ This extension is based on a [similar work](https://github.com/sergiirocks/vscod

## Features

- `Color.FromARGB(int)`
- `Color.FromARGB(int, int, int)`
- `Color.FromARGB(int, int, int, int)`
- `Color.FromARGB(int rgb)`
- `Color.FromARGB(int r, int g, int b)`
- `Color.FromARGB(int a, int r, int g, int b)`
- `Color.?`
- `KnownColor.?`
- `Color.FromName("?")`
- `new Color(float, float, float)`
- `new Color(float, float, float, float)`
- `new Color32(byte, byte, byte, byte)`
- `new Color(float r, float g, float b)`
- `new Color(float r, float g, float b, float a)`
- `new Color32(byte r, byte g, byte b, byte a)`

The `float` and `byte` overloads is meant to be used in Unity and allows the `UnityEngine.` leading qualifier.
Every `int` parameter works for decimal, binary and hex.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "csharp-colors",
"displayName": "C# Colors",
"description": "Highlight C# colors in your editor",
"version": "0.1.6",
"version": "0.1.7",
"publisher": "logerfo",
"keywords": [
"c#",
Expand Down

0 comments on commit 84a79d8

Please sign in to comment.