Skip to content

Instantly share code, notes, and snippets.

View chris95x8's full-sized avatar

Chris Basha chris95x8

View GitHub Profile
@tanishqsh
tanishqsh / airbnb_3d_icon_style.json
Created May 14, 2025 04:10
Airbnb 3D Icon Style Prompt
{
"art_style_profile": {
"style_name": "Modern Isometric 3D Icons – High-Fidelity",
"visual_elements": {
"shape_language": "Real objects reduced to smooth, softly-rounded forms with gentle bevels, yet retaining all signature sub-shapes (e.g., pasta strands individually twisted, grill marks precisely scored).",
"colors": {
"palette_strategy": {
"base_hue": "Use the object’s most iconic colour.",
"tone_triplet": "Three tones of that hue (Lightness ±18 %).",
"pop_accent": "One high-saturation complementary / triadic hue for fun highlights.",
@lurbas
lurbas / DuotoneColorFilter.java
Last active July 14, 2023 02:13
Duotone ColorFilter for Android
public ColorFilter duotoneColorFilter(@ColorInt int colorBlack, @ColorInt int colorWhite, float contrast) {
ColorMatrix cm = new ColorMatrix();
ColorMatrix cmBlackWhite = new ColorMatrix();
float lumR = 0.2125f;
float lumG = 0.7154f;
float lumB = 0.0721f;
float[] blackWhiteArray = new float[]{
lumR, lumG, lumB, 0, 0,
lumR, lumG, lumB, 0, 0,
@mlagerberg
mlagerberg / DottedLine.java
Last active February 20, 2021 11:04
[Vertical dotted line view] #android
package com.pixplicity.gist.ui.views;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathDashPathEffect;
import android.util.AttributeSet;