Skip to content

Instantly share code, notes, and snippets.

View FredEckert's full-sized avatar

Fred Eckert FredEckert

  • Control Micro Systems
  • Orlando, FL USA
View GitHub Profile
@FredEckert
FredEckert / 3D_perspective_projection_visualizer.py
Created January 29, 2024 01:19
3D perspective projection visualizer
# title: 3D_perspective_projection_visualizer.py
# reference: ChatGPT-4> Given the python program https://gist.github.com/FredEckert/9527d4ec1fbd1be2e46bd920225ca1f4,
# can you create a perspective projection visualizer in a similar style>?
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
def perspective_transform(matrix, points):
@FredEckert
FredEckert / Command-Line Rust book hyperlinks.txt
Last active January 7, 2023 22:21
hyperlinks from the book Command-Line Rust
@FredEckert
FredEckert / 3D_affine_transformation_visualizer.py
Last active November 30, 2019 02:36
3D affine transformation visualizer
# title: 3D_affine_transformation_visualizer.py
# references:
# 1. how to perform coordinates affine transformation using python?
# https://stackoverflow.com/questions/8873462/how-to-perform-coordinates-affine-transformation-using-python/56329041#56329041
# 2. python draw parallelepiped
# https://stackoverflow.com/questions/44881885/python-draw-parallelepiped/45094199#45094199
# https://stackoverflow.com/questions/44881885/python-draw-parallelepiped/49766400#49766400
#
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
@FredEckert
FredEckert / framebuffer.c
Created August 22, 2012 13:15
Paint Pixels to Screen via Linux FrameBuffer
/*
To test that the Linux framebuffer is set up correctly, and that the device permissions
are correct, use the program below which opens the frame buffer and draws a gradient-
filled red square:
retrieved from:
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2)
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html
*/