403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.59
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gpa/libchart/classes/view/color/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/libchart/classes/view/color/Palette.php
<?php
    /* Libchart - PHP chart library
     * Copyright (C) 2005-2011 Jean-Marc Trémeaux (jm.tremeaux at gmail.com)
     * 
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     * 
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY 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/>.
     * 
     */
    
    /**
     * Color palette shared by all chart types.
     *
     * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com)
     * Created on 25 july 2007
     */
    class Palette {
        // Plot attributes
        public $red;
        public $axisColor;
        public $backgroundColor;
        
        // Specific chart attributes
        public $barColorSet;
        public $lineColorSet;
        public $pieColorSet;
    
        /**
         * Palette constructor.
         */
        public function Palette() {
            $this->red = new Color(255, 0, 0);
        
            // Set the colors for the horizontal and vertical axis
            $this->setAxisColor(array(
                    new Color(201, 201, 201),
                    new Color(158, 158, 158)
            ));

            // Set the colors for the background
            $this->setBackgroundColor(array(
                    new Color(242, 242, 242),
                    new Color(231, 231, 231),
                    new Color(239, 239, 239),
                    new Color(253, 253, 253)
            ));
            
            // Set the colors for the bars
            $this->setBarColor(array(
                    new Color(42, 71, 181),
                    new Color(243, 198, 118),
                    new Color(128, 63, 35),
                    new Color(195, 45, 28),
                    new Color(224, 198, 165),
                    new Color(239, 238, 218),
                    new Color(40, 72, 59),
                    new Color(71, 112, 132),
                    new Color(167, 192, 199),
                    new Color(218, 233, 202)
            ));

            // Set the colors for the lines
            $this->setLineColor(array(
                    new Color(172, 172, 210),
                    new Color(2, 78, 0),
                    new Color(148, 170, 36),
                    new Color(233, 191, 49),
                    new Color(240, 127, 41),
                    new Color(243, 63, 34),
                    new Color(190, 71, 47),
                    new Color(135, 81, 60),
                    new Color(128, 78, 162),
                    new Color(121, 75, 255),
                    new Color(142, 165, 250),
                    new Color(162, 254, 239),
                    new Color(137, 240, 166),
                    new Color(104, 221, 71),
                    new Color(98, 174, 35),
                    new Color(93, 129, 1)
            ));

            // Set the colors for the pie
            $this->setPieColor(array(
                    new Color(2, 78, 0),
                    new Color(148, 170, 36),
                    new Color(233, 191, 49),
                    new Color(240, 127, 41),
                    new Color(243, 63, 34),
                    new Color(190, 71, 47),
                    new Color(135, 81, 60),
                    new Color(128, 78, 162),
                    new Color(121, 75, 255),
                    new Color(142, 165, 250),
                    new Color(162, 254, 239),
                    new Color(137, 240, 166),
                    new Color(104, 221, 71),
                    new Color(98, 174, 35),
                    new Color(93, 129, 1)
            ));
        }
        
        /**
         * Set the colors for the axis.
         *
         * @param colors Array of Color
         */
        public function setAxisColor($colors) {
            $this->axisColor = $colors;
        }
        
        /**
         * Set the colors for the background.
         *
         * @param colors Array of Color
         */
        public function setBackgroundColor($colors) {
            $this->backgroundColor = $colors;
        }
        
        /**
         * Set the colors for the bar charts.
         *
         * @param colors Array of Color
         */
        public function setBarColor($colors) {
            $this->barColorSet = new ColorSet($colors, 0.75);
        }
        
        /**
         * Set the colors for the line charts.
         *
         * @param colors Array of Color
         */
        public function setLineColor($colors) {
            $this->lineColorSet = new ColorSet($colors, 0.75);
        }
        
        /**
         * Set the colors for the pie charts.
         *
         * @param colors Array of Color
         */
        public function setPieColor($colors) {
            $this->pieColorSet = new ColorSet($colors, 0.7);
        }
    }
?>

Youez - 2016 - github.com/yon3zu
LinuXploit