(function(){
    'use strict';

    var ctrl = angular.module('colorWell.controllers', []);

    ctrl.controller('ColorWellController', [colorWell]);

    function colorWell(){
        var vm = this;

        vm.title = "Color Well";

        vm.r = 255;
        vm.g = 255;
        vm.b = 255;
        vm.a = 1;

        vm.setRed = function(){
            console.log("setRed() called");
            vm.r = 255;
            vm.g = 0;
            vm.b = 0;
        };

        vm.setGreen = function(){
            console.log("setGreen() called");
            vm.r = 0;
            vm.g = 255;
            vm.b = 0;
        };

        vm.setBlue = function(){
            console.log("setBlue() called");
            vm.r = 0;
            vm.g = 0;
            vm.b = 255;
        }
    }

}());