I hereby claim:
- I am sankra on github.
- I am hjerpbakk (https://keybase.io/hjerpbakk) on keybase.
- I have a public key ASD0WPn4xqzKx0rNe_nh90p3-vmL3m-D92BxYmuP0peB2go
To claim this, I am signing this object:
var image = SKSpriteNode.FromTexture(SKTexture.FromImageNamed("image-name")); | |
image.Position = new CGPoint(Frame.GetMidX(), Frame.GetMidY()); | |
var widthScaleFactor = device.DeviceSize.Width / image.Size.Width; | |
var heightScaleFactor = device.DeviceSize.Height / image.Size.Height; | |
var scaleFactor = widthScaleFactor < heightScaleFactor ? widthScaleFactor : heightScaleFactor; | |
image.SetScale(scaleFactor); |
using System; | |
using System.Linq; | |
using System.IO; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
/** | |
* Made by Illedan for Hjerpbakk. | |
**/ | |
class Player |
I hereby claim:
To claim this, I am signing this object:
<Label Text="{Binding Decimals}" TextColor="#929292" /> |
<Label Text="{Binding Decimals}" TextColor="{x:Static l:App.ValueColorString}" /> |
using Xamarin.Forms.Xaml; | |
[assembly: XamlCompilation (XamlCompilationOptions.Compile)] | |
namespace GoldenRatioCalculator { | |
public class App : Application { | |
public const string ValueColorString = "#929292"; | |
public static readonly Color ValueColor = new Color(146D, 146D, 146D); | |
... |
public struct WidgetInformation : IEquatable<WidgetInformation> | |
{ | |
private readonly Guid id; | |
private readonly string name; | |
public WidgetInformation(Guid id, string name) | |
{ | |
this.id = id; | |
this.name = name; | |
} |
/// <summary> | |
/// Creates a tiled texture and applies it to the <see cref="SKSpriteNode"/>. | |
/// </summary> | |
/// <param name="spriteNode">The <see cref="SKSpriteNode"/> to which the texture is applied.</param> | |
/// <param name="texture">The texture used as tiles.</param> | |
/// <param name="coverageSize">The size of the finished tiled texture.</param> | |
public static void TileSprite(this SKSpriteNode spriteNode, UIImage texture, CGSize coverageSize) { | |
var textureSize = new CGRect(CGPoint.Empty, texture.Size); | |
UIGraphics.BeginImageContext(coverageSize); |
public static UIColor ColorForRatio(float[] startColor, float[] endColor, float colorRatio) { | |
return UIColor.FromRGB(startColor[0] + (endColor[0] - startColor[0]) * colorRatio, | |
startColor[1] + (endColor[1] - startColor[1]) * colorRatio, | |
startColor[2] + (endColor[2] - startColor[2]) * colorRatio); | |
} |
var customerFeeling = await CustomerFeelingSheet.ShowRatingDialogAsync(parentVC); | |
switch(customerFeeling) { | |
case CustomerFeeling.LikeIt: | |
// "I like it!" was chosen | |
break; | |
case CustomerFeeling.CouldBeBetter: | |
// "It could be better..." was chosen | |
break; | |
default: | |
// "Cancel" was chosen |