Lightningbeam/colors.py

20 lines
3.6 KiB
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
### BEGIN LICENSE
# Copyright (C) 2011 Skyler Lehmkuhl
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
def colorArray(i):
return [[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0.2,0.2,0.2],[0.4,0.4,0.4],[0.6,0.6,0.6],[0.8,0.8,0.8],[1,1,1],[1,0,0],[0,1,0],[0,0,1],[1,1,0],[0,1,1],[1,0,1]], [[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0,0,0.2],[0,0,0.4],[0,0,0.6],[0,0,0.8],[0,0,1],[0.6,0,0],[0.6,0,0.2],[0.6,0,0.4],[0.6,0,0.6],[0.6,0,0.8],[0.6,0,1]],[[0,0.2,0],[0,0.2,0.2],[0,0.2,0.4],[0,0.2,0.6],[0,0.2,0.8],[0,0.2,1],[0.6,0.2,0],[0.6,0.2,0.2],[0.6,0.2,0.4],[0.6,0.2,0.6],[0.6,0.2,0.8],[0.6,0.2,1]],[[0,0.4,0],[0,0.4,0.2],[0,0.4,0.4],[0,0.4,0.6],[0,0.4,0.8],[0,0.4,1],[0.6,0.4,0],[0.6,0.4,0.2],[0.6,0.4,0.4],[0.6,0.4,0.6],[0.6,0.4,0.8],[0.6,0.4,1]],[[0,0.6,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