コード例 #1
0
 public async ValueTask <Color3> get_specular()
 {
     if (__specular == null)
     {
         __specular = await EventHorizonBlazorInterop.GetClass <Color3>(
             this.___guid,
             "specular",
             (entity) =>
         {
             return(new Color3()
             {
                 ___guid = entity.___guid
             });
         }
             );
     }
     return(__specular);
 }
コード例 #2
0
 public async ValueTask <Color3> get_diffuse()
 {
     if (__diffuse == null)
     {
         __diffuse = await EventHorizonBlazorInterop.GetClass <Color3>(
             this.___guid,
             "diffuse",
             (entity) =>
         {
             return(new Color3()
             {
                 ___guid = entity.___guid
             });
         }
             );
     }
     return(__diffuse);
 }
 public static async ValueTask <Color3> get_BlackReadOnly()
 {
     if (__BlackReadOnly == null)
     {
         __BlackReadOnly = await EventHorizonBlazorInterop.GetClass <Color3>(
             "BABYLON",
             "Color3.BlackReadOnly",
             (entity) =>
         {
             return(new Color3()
             {
                 ___guid = entity.___guid
             });
         }
             );
     }
     return(__BlackReadOnly);
 }
 public static async ValueTask HSVtoRGBToRef(decimal hue, decimal saturation, decimal value, Color3 result)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { "BABYLON", "Color3", "HSVtoRGBToRef" }, hue, saturation, value, result
     }
         );
 }
 public static async ValueTask LerpToRef(Color3 left, Color3 right, decimal amount, Color3 result)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { "BABYLON", "Color3", "LerpToRef" }, left, right, amount, result
     }
         );
 }
コード例 #6
0
 /// <summary>
 /// </summary>
 /// <param name="startValue">
 /// </param>
 /// <param name="endValue">
 /// </param>
 /// <param name="gradient">
 /// </param>
 /// <returns>
 /// </returns>
 public virtual Color3 color3InterpolateFunction(Color3 startValue, Color3 endValue, double gradient)
 {
     return(Color3.Lerp(startValue, endValue, gradient));
 }