This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "hwysign", | |
new TextureSignPropInfo(1, | |
new List<float> { 0f }, | |
new List<Rect> {new Rect(133,15,780,348) }, | |
new List<string> { "Main Sign" } ) | |
}, | |
{ "double gantry sign", | |
new TextureSignPropInfo(3, | |
new List<float> { 0f,0f,0f }, | |
new List<Rect> { new Rect(220,5,581,364), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Material material = m_signPropDict[signPropType].m_material; | |
if ( signPropType == "double gantry sign") | |
{ | |
Texture2D texture = material.mainTexture as Texture2D; | |
material = Instantiate(m_signPropDict[signPropType].m_material) as Material; | |
Texture2D texCopy = new Texture2D(texture.width, texture.height, TextureFormat.RGBA32, false); | |
texCopy.SetPixels(texture.GetPixels()); | |
Texture2D otherTexture = SpriteUtils.mTextureStore["bipintemplate1"]; | |
Texture2D otherTexture2 = SpriteUtils.mTextureStore["bipintemplate2"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys | |
import pygame | |
import csv | |
import re | |
import signal | |
sys.path.insert(0,"../..") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import urllib | |
import usb.core, usb.util | |
dev = usb.core.find(idVendor = 0x1cbe, idProduct=0x0003) | |
def download_image(): | |
urllib.urlretrieve ("http://lorempixel.com/640/480/", "image.jpg") | |
def rgb_to_uint16(r,g,b): |