For faster navigation, this Iframe is preloading the Wikiwand page for File:12-bit RGB Cube.gif.

File:12-bit RGB Cube.gif

12-bit_RGB_Cube.gif(400 × 400 pixels, file size: 6.56 MB, MIME type: image/gif, looped, 180 frames, 7.2 s)

Summary

Description
English: Animated 12-bit RGB Cube
Date
Source Own work
Author Kjerish
Other versions
GIF development
InfoField
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from mpl_toolkits.mplot3d import Axes3D

bits=4
fig = plt.figure()
fig.subplots_adjust(left=0, bottom=0, right=1, top=1)
ax = fig.add_subplot(111, projection='3d')
ax.set_axis_bgcolor((0.5, 0.5, 0.5))
gradient = np.linspace(0, 1, 2**bits)
X,Y,Z = np.meshgrid(gradient, gradient, gradient)
colors=np.stack((X.flatten(),Y.flatten(),Z.flatten()),axis=1)
ax.scatter(X,Y,Z,alpha=1.0,s=100./2**bits,c=colors,marker='o',linewidth='0')

def update(i):
    ax.view_init(elev=20., azim=i)
    return fig, ax

if __name__ == '__main__':
    plt.axis('off')
    fig.set_size_inches(5, 5)
    anim = FuncAnimation(fig, update, frames=np.arange(0, 360, 2), repeat=True)
    anim.save('%d-bit_color.gif' %(3*bits), dpi=80, writer='imagemagick', fps=24)

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

8 January 2017

image/gif

3d96d62b498c0cd1b0440c408bb307368a93d84e

6,879,103 byte

400 pixel

400 pixel

7.2000000000000055 second

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current05:22, 9 January 2017Thumbnail for version as of 05:22, 9 January 2017400 × 400 (6.56 MB)KjerishReduced trailing artifact
05:03, 9 January 2017Thumbnail for version as of 05:03, 9 January 2017400 × 400 (6.55 MB)KjerishUser created page with UploadWizard

File usage

The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

{{bottomLinkPreText}} {{bottomLinkText}}
File:12-bit RGB Cube.gif
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?