google – type ‘Color’ is not a subtype of type ‘MaterialColor’ error in Flutter?

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building Builder:
type ‘Color’ is not a subtype of type ‘MaterialColor’

The relevant error-causing widget was:
MaterialApp file:///D:/FlutterExercise/FlutterExercise/07/spanishaudioplayer/lib/main.dart:9:12

When the exception was thrown, this was the stack:
#0 new _HomePageState (package:spanishaudioplayer/HomePage.dart:22:35)
#1 HomePage.createState (package:spanishaudioplayer/HomePage.dart:7:35)
#2 new StatefulElement (package:flutter/src/widgets/framework.dart:4584:24)
#3 StatefulWidget.createElement (package:flutter/src/widgets/framework.dart:916:38)
… Normal element mounting (166 frames)
#169 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#170 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6094:32)
… Normal element mounting (300 frames)
#470 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#471 Element.updateChild (package:flutter/src/widgets/framework.dart:3306:18)
#472 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1182:16)
#473 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1153:5)
#474 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1095:18)
#475 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2647:19)
#476 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1094:13)
#477 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:934:7)
#478 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:915:7)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

════════════════════════════════════════════════════════════════════════════════════════════════════
W/InputMethodManager(14486): startInputReason = 8
W/IInputConnectionWrapper(14486): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(14486): getTextBeforeCursor on inactive InputConnection
V/ActivityThread(14486): Finishing stop of ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}}
W/libEGL (14486): EGLNativeWindowType 0x76efee7010 disconnect failed
W/libEGL (14486): EGLNativeWindowType 0x7713667010 disconnect failed
V/ActivityThread(14486): Handle window ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}} visibility: false

/////////////////////////////////////////////////////////////////////////////////////////////////////
//main.dart

import 'package:flutter/material.dart';
import 'HomePage.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Spanish Audio Numbers',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      ),
      home: HomePage(),
    );
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//HomePage.dart

import 'package:flutter/material.dart';
import 'package:audioplayers/audio_cache.dart';
import 'NumberAudio.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  AudioCache audioPlayer = AudioCache();
  List<NumberAudio> audioList = (
    NumberAudio("one.wav", Colors.red, "one"),
    NumberAudio("two.wav", Colors.blue, "two"),
    NumberAudio("three.wav", Colors.pink, "three"),
    NumberAudio("four.wav", Colors.orange, "four"),
    NumberAudio("five.wav", Colors.purple, "five"),
    NumberAudio("six.wav", Colors.cyan, "six"),
    NumberAudio("seven.wav", Colors.green, "seven"),
    NumberAudio("eight.wav", Colors.grey, "eight"),
    NumberAudio("nine.wav", Colors.yellow, "nine"),
    NumberAudio("ten.wav", Colors.black, "ten"),
  );
  play(String audioFile) async {
    audioPlayer.play(audioFile);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'Spanish Numbers',
          style: TextStyle(
            color: Colors.white,
            fontSize: 24.0,
            fontWeight: FontWeight.bold,
          ),
        ),
        //backgroundColor: Colors.teal,
      ),
      body: Center(
        child: Column(
          children: (
            Image(
              image: AssetImage("images/logo.png"),
            ),
            Expanded(
              child: GridView.builder(
                padding: EdgeInsets.all(10.0),
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                  childAspectRatio: 1.0,
                  crossAxisCount: 2,
                  crossAxisSpacing: 5.0,
                  mainAxisSpacing: 5.0,
                ),
                itemCount: audioList.length,
                itemBuilder: (context, index) => SizedBox(
                  height: 50.0,
                  width: 100.0,
                  child: RaisedButton(
                    child: Text(
                      audioList(index).buttonTitle,
                      style: TextStyle(
                        color: Colors.white,
                        fontSize: 24.0,
                        fontWeight: FontWeight.bold,
                      ),
                    ),
                    color: audioList(index).buttonColor,
                    onPressed: () {
                      play(audioList(index).audioFile);
                    },
                  ),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//NumberAudio.dart

import 'package:flutter/material.dart';

class NumberAudio {
  String audioFile;
  MaterialColor buttonColor;
  String buttonTitle;
  NumberAudio(String audioFile, MaterialColor buttonColor, String buttonTitle) {
    this.audioFile = audioFile;
    this.buttonColor = buttonColor;
    this.buttonTitle = buttonTitle;
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////

audio files are in the assets folder and the logo is in images folder.

magento2 – How to create my custom visual swatch color attribute in my own module Vendor/Module/Setup/Patch/Data/MyOwnColorAttribute?

I take from https://github.com/magento/magento2/blob/2.3/dev/tests/integration/testsuite/Magento/Swatches/_files/product_visual_swatch_attribute.php like example, but my own color attribute patch didn’t create any options if I add those parameters. This is my code:

<?php 
namespace VendorModuleSetupPatchData;

use MagentoCatalogModelProduct;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
use MagentoEavModelEntityAttributeSourceTable;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoFrameworkSetupPatchDataPatchInterface;
use VendorModuleModelAttributeBackendColor as Backend;
use VendorModuleModelAttributeFrontendColor as Frontend;

class AddColorAttribute implements DataPatchInterface
{
    /**
     * @var ModuleDataSetupInterface
     */
    private $moduleDataSetup;

    /**
     * @var EavSetupFactory
     */
    private $eavSetupFactory;

    /**
     * @param ModuleDataSetupInterface $moduleDataSetup
     * @param EavSetupFactory $eavSetupFactory
     */
    public function __construct(
        ModuleDataSetupInterface $moduleDataSetup,
        EavSetupFactory $eavSetupFactory,
    ) {
        $this->moduleDataSetup = $moduleDataSetup;
        $this->eavSetupFactory = $eavSetupFactory;
    }

    /**
     * @inheritdoc
     */
    public function apply()
    {
        $this->moduleDataSetup->startSetup();
        $eavSetup = $this->eavSetupFactory->create();
        $eavSetup->addAttribute(Product::ENTITY, 'visual_swatch_color_attribute', (
            'type' => 'int',
            'label' => 'Visual Swatch Color Attribute',
            'input' => 'select',
            'frontend' => Frontend::class,
            'backend' => Backend::class,
            'source' => Table::class,
            'required' => false,
            'global' => ScopedAttributeInterface::SCOPE_GLOBAL,
            'visible' => true,
            'is_used_in_grid' => true,
            'is_visible_in_grid' => true,
            'is_filterable_in_grid' => true,
            'user_defined' => true,
            'searchable' => true,
            'filterable' => true,
            'comparable' => true,
            'visible_on_front' => true,
            'used_in_product_listing' => true,
            'is_html_alowed_on_front' => true,
            'unique' => false,
            'swatch_input_type' => 'visual',
            'swatchvisual' => (
                'value' => (
                    'Obsidian' => '#3a322d',
                    'Pure' => '#0000ff',
                    'Crimson' => '#dc143c',
                    'Emerald' => '#50c878',
                    'Ametyst' => '#9966cc',
                ),
            ),
            'optionvisual' => (
                'values' => (
                    'Obsidian' => ('Obsidian'),
                    'Pure' => ('Pure'),
                    'Crimson' => ('Crimson'),
                    'Emerald' => ('Emerald'),
                    'Ametyst' => ('Ametyst'),
                ),
            ),
            'default' => '1'
        ));

        $eavSetup->addAttributeToGroup(
            MagentoCatalogModelProduct::ENTITY,
            'Default',
            'Product Details',
            'visual_swatch_color_attribute',
            18
        );
        $this->moduleDataSetup->endSetup();
    }

    /**
     * @inheritdoc
     */
    public static function getDependencies(): array
    {
        return ();
    }

    /**
     * @inheritdoc
     */
    public function getAliases(): array
    {
        return ();
    }
}

color – Plot cylindrical segments for LCH / LAB colour space

ChromaticityPlot3D("LCH", "LAB", Mesh -> None, Boxed -> False, 
Axes -> False, PlotPoints -> 50)

RegionPlot3D({x^2 + y^2 < 1 && 0 <= z <= 1}, {x, -1, 1}, {y, -1, 1}, {z, 0, 1},   
ColorFunction -> (LABColor(#3, #1, #2) &), 
ColorFunctionScaling -> False, Mesh -> None, Boxed -> False, 
Axes -> False, PlotPoints -> 50)

both give the same results. I am trying to create sections like this

RegionPlot3D({x^2 + y^2 < 1 && 0 <= z <= 1 && x < y}, 
{x, -1, 1}, {y, -1, 1}, {z, 0, 1}, 
ColorFunction -> (LABColor(#3, #1, #2) &), 
ColorFunctionScaling -> False, Mesh -> None, Boxed -> False, 
Axes -> False, PlotPoints -> 50)

but its slightly off, and I’m haveing trouble rotating it to cover all hues. I’d ultimately like to be able to take a cylindrical segment using the colour function as above, but have not had any luck so far (I won’t post my failed attempts!). Any ideas how I might achieve this?

plotting – Uniform Color distribution with the command Show[]

I have the following definitions:

a=Sqrt(2 + 2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
  Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)));

a3=Sqrt(5 + 4 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
  Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)));

beta = 2 a1^2 + 2 a2^2 + 2 a3^2 + 2 a1^2 a2^2 + 2 a1^2 a3^2 + 
   2 a2^2 a3^2 - a1^4 - a2^4 - a3^4 - Sqrt(((a + a + a3)^2 - 1)*((a - a + a3)^2 - 
     1)*((a + a - a3)^2 - 1)*((a - a - a3)^2 - 1)) - 1;

then, I define the plots A and B as follows:

A = Plot3D({1/2 Log((beta/(8 a^2)))}, {r, -1.0, 1.0}, {(Theta), 
   0.01 (Pi), 1.99 (Pi)}, 
  RegionFunction -> 
   Function({r, (Theta)}, 
    0 < Sqrt(
      2 + 2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
        Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r))) - 
      1/Sqrt(2) ((Sqrt)(((-3 - 
               2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))^2 + 
             2 (7 + 6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r))
                  Sqrt(Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r))) + 
             Abs(-3 - 
                2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                 Cosh(2 r) + 
                  Cos(2 (Theta)) Sinh(2 r))) (Sqrt)((-3 - 
                   2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                    Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))^2 + 
                 8 (7 + 6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r))
                     Sqrt(Cosh(2 r) + 
                    Cos(2 (Theta)) Sinh(2 r)))))/(7 + 
             6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
              Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))))), 
  PerformanceGoal -> "Quality", AxesLabel -> Automatic, 
  PlotRange -> All, PlotPoints -> 30, Mesh -> 5, MaxRecursion -> 7, 
  ColorFunction -> "TemperatureMap");
(*-------------------------------------------*)

B=Plot3D({1/2 Log(((a^2 - a3^2)/(a^2 - 1))^2)}, {r, -1.0, 
  1.0}, {(Theta), 0.01 (Pi), 1.99 (Pi)}, 
 PerformanceGoal -> "Quality", AxesLabel -> Automatic, 
 RegionFunction -> 
  Function({r, (Theta)}, 
   0 >= Sqrt(
     2 + 2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
       Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r))) - 
     1/Sqrt(2) ((Sqrt)(((-3 - 
              2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
               Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))^2 + 
            2 (7 + 6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r))) + 
            Abs(-3 - 
               2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                Cosh(2 r) + 
                 Cos(2 (Theta)) Sinh(2 r))) (Sqrt)((-3 - 
                  2 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
                   Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))^2 + 
                8 (7 + 6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r))
                     Sqrt(Cosh(2 r) + 
                    Cos(2 (Theta)) Sinh(2 r)))))/(7 + 
            6 Sqrt(Cosh(2 r) - Cos(2 (Theta)) Sinh(2 r)) Sqrt(
             Cosh(2 r) + Cos(2 (Theta)) Sinh(2 r)))))), 
 PlotRange -> All, PlotPoints -> 30, Mesh -> 5, MaxRecursion -> 8, 
 ColorFunction -> "TemperatureMap");

then, by the command Show() I join the two plots obtaining
enter image description here

Therefore, both 3Dplots match, as I expected; however, I have the question:

(1) There is a way to show a uniform color distribution for both plots by using the comand Show()?

that is, each plot appears with its own color distribution when I display both with Show(). This is logical since I define separately each function. On the other hand, it must be noted that the region function for plot A is of the form: RegionFunction -> Function({r, (Theta)}, 0 <f) and for B is RegionFunction -> Function({r, (Theta)}, 0 >=f) being f the function of $r$ and $theta$ displayed in the code, which could help to define a conditional to display a single plot without the need to use Show().

7 – China Fast Color Base factory

Items: FAST GARNET GBC BASE
Alias:O-AMINOAZOTOLUENE
C.I.:37210
CAS:35472-85-6
Chemical Formula锛欳14H16ClN3
Appearance: Yellow brown powder
Free amine melting point 100鈩?/p>
Strength:100卤3%
Purity:鈮?0%
Uses: It mainly used for cotton fabric dyeing and printing, also can be used for dyeing viscose, silk, cotton fiber fabric. Can be used as dyes, organic pigments and pharmaceutical intermediates. Staining, AS-D, AS, AS-BS and naphthol red dye coupling. This product coupling ability is strong, coupling speed is slow, coupling pH value is 4-5.5China Fast Color Base factory
website:http://www.naphtholas.com/pigment-intermediates/fast-color-base/

google sheets – How do you color a cell if no other cell references it?

I am making a spreadsheet with a bunch of variables I want to change and some formulas that use those variables. I want to use conditional formatting (probably?) to color any cells which are “standing alone” or not affecting any other cells or not referred to in any other cells. Basically, I know the variables I need to include to make the calculations I want to make for this particular spreadsheet, but I don’t yet know how each of those variables factors into the calculations I want to make. And I want to tackle the problem of how to incorporate those variables one by one. So I want to color the cells that represent “unused” variables so I can work my way through each variable and figure out how it needs to be used in the calculation.

Here’s an overly simplistic and perhaps quite odd example:

  • Bunnies I have now: 4
  • Time horizon (in years): 5
  • Bunnies I want to have in time horizon: 20
  • Bunnies I need to acquire per year: X

Let’s just say I have X as a formula properly set up to use the “Bunnies I have now” and “Bunnies I want to have” factored in, but I’m not sure how to factor in the time horizon just yet, so I want to color the time horizon cells in order to remember that I need to factor them in. This example has three variables and one calculation, but pretend I have 20 variables (which are consequently harder to track).

Does anyone know how to do this? How do you color a cell if it is not referred to in any other cells? Thanks in advance.

c# – Cambiar color de GameObject a partir de un valor leido de un json por UnityWebRequest

soy todavia muy nueva en C# y necesito poder hacer modificaciones en el color de un objeto segun un valor leido del json.

El fragmento de codigo que estoy usando para obtener el valor que quiero este:

 JSONNode sensorInfo = JSON.Parse(sensorInfoRequest.downloadHandler.text);

    TemperatureValue.text = sensorInfo("results")(0)("series")(0)("values")(94)(1).ToString();

Quiero establecer un cambio de color cuando el valor obtenido sea mayor a 25, por ejemplo. O que dicho valor se encuentre dentro de un rango (por ejemplo: 15< y <25) que cambie a un determinado color.

Gracias de antemano.

I will editing wedding photo and color correction in Lightroom for $1

I will editing wedding photo and color correction in Lightroom

(Please contact me before order)

Welcome To My Gig Photo Editing Service in Lightroom.

Description-

I am editing Wedding, engagement, Birthday, Anniversary, Pre-Wedding, newborn, or any kind of event photos Color correction and adjustment (exposure, color, light, contrast, Noise reduction, Cropping etc) and very low price.

see my portfolio here: https://flic.kr/s/aHskHPKX4J

I am Editing Realistic, Natural, style. If you have any Preset can send me, i will use this for you.

My Services:

  • Color Correction
  • White balance
  • Exposure
  • Contrast
  • Highlight/Shadows
  • Image resizing/cropping/Straighten
  • Noise Reduction
  • Sharping
  • Skin smoothing
  • Spot Removing
  • and more

I will edit your full event photo/catalog contact me for information or a number of Photos contact me, I will create a custom offer for you.
Thank you

.(tagsToTranslate)photo(t)editing(t)wedding(t)image(t)lightroom(t)photoshop

color correcting scans

I got an Epson ff-680w but can’t find any way to color correct the scans using a calibrated profile. My understanding is that this is the main thing to look out for when trying to scan in archive quality. How would I build a color calibration profile and apply that to the scanned images?

color management – Why is the contrast calculated in i1Profiler so low?

I just received a Dell S3221QS, which is a 32″ with a VA panel.

I used i1 Display Pro and i1Profiler 3.x to calibrate the monitor. At the end the calculated contrast ratio is just 256:1, which is very poor.

enter image description here

I tried different settings, like D65 vs native, 120 cd vs native, table vs matrix, small vs large patch set, always the same result.

I tried to use the test on Lagom to use my camera to measure the contrast ratio, and I got about 2000:1, which makes more sense for a Va panel.

Why is the value provided by i1Profiler so low? I remember that my previous monitor (Dell UP2414Q, IPS gb-r display) used to achieve 850-950:1 with i1Profiler 1.x, which was a more reasonable value.

Why the change in the values?