Skip to content

Instantly share code, notes, and snippets.

View soulcramer's full-sized avatar

Scott Rayapoullé soulcramer

View GitHub Profile
@soulcramer
soulcramer / WhiteBalanceAdjuster.kt
Created July 19, 2021 12:01 — forked from bryansills/WhiteBalanceAdjuster.kt
Auto White Balance Adjustment
import android.graphics.Bitmap
import android.graphics.Color
import androidx.annotation.ColorInt
import com.curiouscreature.kotlin.math.Float3
import com.curiouscreature.kotlin.math.Mat3
import com.curiouscreature.kotlin.math.saturate
import com.curiouscreature.kotlin.math.transpose
import kotlin.math.pow

🔊 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

@soulcramer
soulcramer / rainbow.xml
Created June 27, 2018 17:07 — forked from nickbutcher/rainbow.xml
Demonstrating using VectorDrawable gradients to create a rainbow effect. See https://twitter.com/crafty/status/1011922414983352320
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied. See the License for the specific language governing permissions and limitations under
the License.
@soulcramer
soulcramer / Animators.kt
Created June 27, 2018 17:05 — forked from chrisbanes/Animators.kt
Material Image Loading treatment for Android
/*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software