Skip to content

Instantly share code, notes, and snippets.

View ian-patel's full-sized avatar
🛫
It's time to fly again.

Ian Patel ian-patel

🛫
It's time to fly again.
View GitHub Profile
@Njengah
Njengah / fiddle_493421.php
Created October 9, 2019 14:51 — forked from phpfiddle/fiddle_493421.php
Php color palette shade generator
<?php
class ColorPalette{
public $color;
public function __construct($color){
$this->color = $color;
}
public function color_mod($hex, $diff) {
$rgb = str_split(trim($hex, '# '), 2);