Beispiel #1
0
 // Called every time an item is tapped.
 private void TappedItem(SampleColor color)
 {
     // TODO: Insert code to handle a list item tapped command.
     // if (color != null)
     // {
     //     Logger.Info($"Tapped Item : {color.Name}");
     // }
 }
Beispiel #2
0
 /// <summary>
 /// Sets the sampled colors.
 /// </summary>
 public void SetSampledColors(SampleColor color, int index, Color pixel)
 {
     if (!sampleColors.ContainsKey(color))
     {
         sampleColors.Add(color, new List <Vector3> {
         });
     }
     if (sampleColors [color].Count <= index)
     {
         sampleColors [color].Add(new Vector3(pixel.r, pixel.g, pixel.b));
     }
     else
     {
         sampleColors[color][index] = new Vector3(pixel.r, pixel.g, pixel.b);
     }
 }