Interpolating between things using lerp.
function lerp (start, end, t) {
return start * (1 - t) + end * t;
}| generateColor = (start, end, h, row) => { | |
| const scale = row / h | |
| const r = Math.round( | |
| Math.min(255, Math.max(0, start.red + scale * (end.red - start.red))) | |
| ) | |
| const g = Math.round( | |
| Math.min(255, Math.max(0, start.green + scale * (end.green - start.green))) | |
| ) | |
| const b = Math.round( | |
| Math.min(255, Math.max(0, start.blue + scale * (end.blue - start.blue))) |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| /* | |
| 1. Layout Properties (position, float, clear, display) | |
| 2. Box Model Properties (width, height, margin, padding) | |
| 3. Visual Properties (color, background, border, box-shadow) | |
| 4. Typography Properties (font-size, font-family, text-align, text-transform) | |
| 5. Misc Properties (cursor, overflow, z-index) | |
| */ | |
| .example { | |
| /* layout */ |
References:
http://www.muktware.io/arch-linux-guide-the-always-up-to-date-arch-linux-tutorial/ (Link is broken)There are 2 choices:
I tried to install in UEFI mode, but my laptop (Acer E5-475-336H) had problems with it, and didn't boot after installation.