Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Create new VkColor.as for fast choose color :) #73

Open
ghost opened this issue Jul 5, 2018 · 0 comments
Open

Create new VkColor.as for fast choose color :) #73

ghost opened this issue Jul 5, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2018

Hello everyone,

I am happy because I have got color like any OpenTK, SharpDX and OpenGL.net now Vulkan Caution Vulkan will get eruption and lava are colorable :D
using Vulkan;

namespace ClearView.Common
{
    // Vulkan's color like any fast colors from OpenTK, SharpDX and more...
    class VkColor : ClearColorValue
    {
        public VkColor(float red, float green, float blue, float alpha)
        {
            Float32 = new float[] { red, green, blue, alpha };
        }

        public static VkColor Red
        {
            get
            {
                return new VkColor(1.0f, 0.0f, 0.0f, 1.0f);
            }
        }

        public static VkColor CornflowerBlue
        {
            get
            {
                return new VkColor(0.392f, 0.584f, 0.929f, 1.0f);
            }
        }

        public static VkColor Yellow
        {
            get
            {
                return new VkColor(1.0f, 1.0f, 0.0f, 1.0f);
            }
        }

        public static VkColor Orange
        {
            get
            {
                return new VkColor(1.0f, 0.5f, 0.0f, 1.0f);
            }
        }
.....
    }
}

Than you can have to choose fast without problem with float float float float. just write fast color if you like... Thanks for support!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants