<commit_before>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// (from https://github.com/wieslawsoltes/ColorBlender)
//MIT, 2017, WinterDev

using System;
using ColorBlender;
using ColorBlender.Algorithms;
using LayoutFarm.CustomWidgets;

namespace LayoutFarm.ColorBlenderSample
{
    [DemoNote("1.13 ColorBlenderExample")]
    class DemoColorBlender : DemoBase
    {
        ColorMatch colorMatch;
        SimpleBox r_sampleBox, g_sampleBox, b_sampleBox;
        SimpleBox[] rgb_varBoxes;
        SimpleBox[] hsv_varBoxes;
        SimpleBox[] swatch_Boxes;

        //
        SimpleBox pure_rgbBox;

        ScrollBar r_sc, g_sc, b_sc;
        ListView lstvw_blendAlgo;

        IAlgorithm blenderAlgo;
        protected override void OnStartDemo(SampleViewport viewport)
        {

            colorMatch = new ColorMatch();
            colorMatch.VariationsRGB = new RGB[7];
            colorMatch.VariationsHSV = new RGB[9];<commit_msg>9987.1<commit_after>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// (from https://github.com/wieslawsoltes/ColorBlender)
//MIT, 2017, WinterDev

using System;
using LayoutFarm.CustomWidgets;
//
using ColorBlender;

namespace LayoutFarm.ColorBlenderSample
{
    [DemoNote("1.13 ColorBlenderExample")]
    class DemoColorBlender : DemoBase
    {
        ColorMatch colorMatch;
        SimpleBox r_sampleBox, g_sampleBox, b_sampleBox;
        SimpleBox[] rgb_varBoxes;
        SimpleBox[] hsv_varBoxes;
        SimpleBox[] swatch_Boxes;

        //
        SimpleBox pure_rgbBox;

        ScrollBar r_sc, g_sc, b_sc;
        ListView lstvw_blendAlgo;

        IAlgorithm blenderAlgo;
        protected override void OnStartDemo(SampleViewport viewport)
        {

            colorMatch = new ColorMatch();
            colorMatch.VariationsRGB = new RGB[7];
            colorMatch.VariationsHSV = new RGB[9];
{'fraction_non_alphanumeric': 0.08329274232830004, 'fraction_numerical': 0.011203117389186557, 'mean_word_length': 2.890151515151515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5108184', 'n_tokens_mistral': 647, 'n_tokens_neox': 608, 'n_words': 155}