# Path: fabulous/color.py
# OVERLINE = u'\u203e'
# def esc(*codes):
#     def __init__(self, *items):
#     def __str__(self):
#     def __repr__(self):
#         def __len__(self):
#         def __len__(self):
#     def __add__(self, cs):
#     def __radd__(self, cs):
#     def as_utf8(self):
#     def join(self, iterable):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
# def h1(title, line=OVERLINE):
# def parse_color(color):
# def complement(color):
# def section(title, bar=OVERLINE, strm=sys.stdout):
# class ColorString(object):
# class ColorString256(ColorString):
# class ColorStringTrue(ColorString):
# class plain(ColorString):
# class bold(ColorString):
# class italic(ColorString):
# class underline(ColorString):
# class underline2(ColorString):
# class strike(ColorString):
# class blink(ColorString):
# class flip(ColorString):
# class black(ColorString):
# class red(ColorString):
# class green(ColorString):
# class yellow(ColorString):
# class blue(ColorString):
# class magenta(ColorString):
# class cyan(ColorString):
# class white(ColorString):
# class highlight_black(ColorString):
# class highlight_red(ColorString):
# class highlight_green(ColorString):
# class highlight_yellow(ColorString):
# class highlight_blue(ColorString):
# class highlight_magenta(ColorString):
# class highlight_cyan(ColorString):
# class highlight_white(ColorString):
# class black_bg(ColorString):
# class red_bg(ColorString):
# class green_bg(ColorString):
# class yellow_bg(ColorString):
# class blue_bg(ColorString):
# class magenta_bg(ColorString):
# class cyan_bg(ColorString):
# class white_bg(ColorString):
# class fg256(ColorString256):
# class fgtrue(ColorStringTrue):
# class bg256(ColorString256):
# class bgtrue(ColorStringTrue):
# class highlight256(ColorString256):
# class highlighttrue(ColorStringTrue):
# class complement256(ColorString256):
# class complementtrue(ColorStringTrue):
# 
# Path: fabulous/utils.py
# def memoize(function):
#     def _memoize(*args):
#     def __init__(self, bgcolor='black'):
#     def termfd(self):
#     def dimensions(self):
#     def width(self):
#     def height(self):
#     def _get_bgcolor(self):
#     def _set_bgcolor(self, color):
# def pil_check():
# class TerminalInfo(object):


import sys
import time
from math import cos, sin, pi
from fabulous import color, utils
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
    fabulous.rotating_cube
    ~~~~~~~~~~~~~~~~~~~~~~

    Command for animating a wireframe rotating cube in the terminal.

"""

from __future__ import with_statement
from __future__ import division




class Frame(object):
    """Canvas object for drawing a frame to be printed
    """

    def __enter__(self):
        self.width = utils.term.width

# Path: fabulous/color.py
# OVERLINE = u'\u203e'
# def esc(*codes):
#     def __init__(self, *items):
#     def __str__(self):
#     def __repr__(self):
#         def __len__(self):
#         def __len__(self):
#     def __add__(self, cs):
#     def __radd__(self, cs):
#     def as_utf8(self):
#     def join(self, iterable):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
#     def __init__(self, color, *items):
#     def __str__(self):
# def h1(title, line=OVERLINE):
# def parse_color(color):
# def complement(color):
# def section(title, bar=OVERLINE, strm=sys.stdout):
# class ColorString(object):
# class ColorString256(ColorString):
# class ColorStringTrue(ColorString):
# class plain(ColorString):
# class bold(ColorString):
# class italic(ColorString):
# class underline(ColorString):
# class underline2(ColorString):
# class strike(ColorString):
# class blink(ColorString):
# class flip(ColorString):
# class black(ColorString):
# class red(ColorString):
# class green(ColorString):
# class yellow(ColorString):
# class blue(ColorString):
# class magenta(ColorString):
# class cyan(ColorString):
# class white(ColorString):
# class highlight_black(ColorString):
# class highlight_red(ColorString):
# class highlight_green(ColorString):
# class highlight_yellow(ColorString):
# class highlight_blue(ColorString):
# class highlight_magenta(ColorString):
# class highlight_cyan(ColorString):
# class highlight_white(ColorString):
# class black_bg(ColorString):
# class red_bg(ColorString):
# class green_bg(ColorString):
# class yellow_bg(ColorString):
# class blue_bg(ColorString):
# class magenta_bg(ColorString):
# class cyan_bg(ColorString):
# class white_bg(ColorString):
# class fg256(ColorString256):
# class fgtrue(ColorStringTrue):
# class bg256(ColorString256):
# class bgtrue(ColorStringTrue):
# class highlight256(ColorString256):
# class highlighttrue(ColorStringTrue):
# class complement256(ColorString256):
# class complementtrue(ColorStringTrue):
# 
# Path: fabulous/utils.py
# def memoize(function):
#     def _memoize(*args):
#     def __init__(self, bgcolor='black'):
#     def termfd(self):
#     def dimensions(self):
#     def width(self):
#     def height(self):
#     def _get_bgcolor(self):
#     def _set_bgcolor(self, color):
# def pil_check():
# class TerminalInfo(object):


# Path: fabulous/rotating_cube.py
import sys
import time
from math import cos, sin, pi
from fabulous import color, utils

# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
    fabulous.rotating_cube
    ~~~~~~~~~~~~~~~~~~~~~~

    Command for animating a wireframe rotating cube in the terminal.

"""

from __future__ import with_statement
from __future__ import division




class Frame(object):
    """Canvas object for drawing a frame to be printed
    """

    def __enter__(self):
        self.width = utils.term.width

        self.height = utils.term.height * 2