Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
mix.js23 linesDownload Raw Back to methods
1/* IMPORT */2import Color from '../color/index.js';3import rgba from './rgba.js';4/* MAIN */5//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L7566const mix = (color1, color2, weight = 50) => {7    const { r: r1, g: g1, b: b1, a: a1 } = Color.parse(color1);8    const { r: r2, g: g2, b: b2, a: a2 } = Color.parse(color2);9    const weightScale = weight / 100;10    const weightNormalized = (weightScale * 2) - 1;11    const alphaDelta = a1 - a2;12    const weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta);13    const weight1 = (weight1combined + 1) / 2;14    const weight2 = 1 - weight1;15    const r = (r1 * weight1) + (r2 * weight2);16    const g = (g1 * weight1) + (g2 * weight2);17    const b = (b1 * weight1) + (b2 * weight2);18    const a = (a1 * weightScale) + (a2 * (1 - weightScale));19    return rgba(r, g, b, a);20};21/* EXPORT */22export default mix;23 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai