DanielBullimore / OOmutiny

OO Javascript frontend
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

0.2 Color #19

Closed DanielBullimore closed 4 years ago

DanielBullimore commented 5 years ago

Priority: Unset

Depends:

0.0 Master (OO)-[OO.class.js]

UML:

OoColor-26-7-2019

Overview

A small object class to set/validate/get a color

Description:

Designed for code reuse. Because many classes will require color as a property and each class would have get, set, and validation code. With a single color class any object that requires a color property can accept an instance of OoColor as that color.

Properties:

strColor - Private string containing a validate color (hex, rgb or english)
booValidated -Boolean used to determine if a color has been set correctly

Methods:

funSetColor - accepts string to validate as a color then set this object color property as that value
funGetColor - Returns this objects color property as string
DanielBullimore commented 4 years ago

sanity checks complete