Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
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

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions