MPDC.Xamarin.iOS.Pastel 1.0.6604.22769

Pastel library Xamarin-iOS version

There is a newer version of this package available.
See the version list below for details.
Install-Package MPDC.Xamarin.iOS.Pastel -Version 1.0.6604.22769
dotnet add package MPDC.Xamarin.iOS.Pastel --version 1.0.6604.22769
<PackageReference Include="MPDC.Xamarin.iOS.Pastel" Version="1.0.6604.22769" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MPDC.Xamarin.iOS.Pastel --version 1.0.6604.22769
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
 public override void ViewDidLoad()
 {
      base.ViewDidLoad();

      // Initializing pastelView object
      var pastelView = new MPDCPastelXamarinIOS.PastelView(View.Bounds);

      pastelView.AnimationDuration = 2.0;

      // init start point and end point
      pastelView.StartPoint = PastelPoint.BottomLeft.Point();
      pastelView.EndPoint = PastelPoint.TopRight.Point();

      // seting  colors
      pastelView.SetColors(PastelGradient.WinterNeva.Colors());
        
      // pastelView.AddColor(SecondGradientColor); 

      pastelView.StartAnimation();
      View.InsertSubview(pastelView,0);
 }

You need to include MPDCPastelXamarinIOS.Extensions namespace to use Colors and Point extension methods.

In PastelGradient enum, we have some custom gradient colors

  • Warflame
  • NightFade
  • SpringWarmth
  • JuicyPeach
  • YoungPassion
  • LadyLips
  • SunnyMorning
  • RainyAshville
  • FrozenDreams
  • WinterNeva

You can use this custom colors, or feel free to add some more gradient colors.

In SetColors method you can implement and add your own colors array.

 public override void ViewDidLoad()
 {
      base.ViewDidLoad();

      // Initializing pastelView object
      var pastelView = new MPDCPastelXamarinIOS.PastelView(View.Bounds);

      pastelView.AnimationDuration = 2.0;

      // init start point and end point
      pastelView.StartPoint = PastelPoint.BottomLeft.Point();
      pastelView.EndPoint = PastelPoint.TopRight.Point();

      // seting  colors
      pastelView.SetColors(PastelGradient.WinterNeva.Colors());
        
      // pastelView.AddColor(SecondGradientColor); 

      pastelView.StartAnimation();
      View.InsertSubview(pastelView,0);
 }

You need to include MPDCPastelXamarinIOS.Extensions namespace to use Colors and Point extension methods.

In PastelGradient enum, we have some custom gradient colors

  • Warflame
  • NightFade
  • SpringWarmth
  • JuicyPeach
  • YoungPassion
  • LadyLips
  • SunnyMorning
  • RainyAshville
  • FrozenDreams
  • WinterNeva

You can use this custom colors, or feel free to add some more gradient colors.

In SetColors method you can implement and add your own colors array.

Release Notes

Initial Release

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 494 1/31/2018
1.1.0 486 1/30/2018
1.0.6604.22769 366 1/30/2018