Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 3 4 5 6 7 … 18 Next »
Image converter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Image converter
02-06-2020, 08:22 PM,
#1
jean730 Offline
TSCM Member
***
Posts: 16
Threads: 8
Joined: Dec 2014
Image converter
Hi,
I made a converter to draw images in starfall.
Your image must be a square.
You first need to convert your image with gimp into an html table.
Change the extension of the script from txt to py (Couldn't upload on the forum as .py)
Convert the html table with the python script ,specify the resolution by setting the size variable in the script.
Redirect the output of the script to a file.
Place this file in your starfall folder.
You can then import the file in your starfall project and use the image.
Avoid images that are too big because the upload time increases with the resolution (~10s for 600x600)
For performance reasons it draws one column per tick and stores the image in a rendertarget once entirely drawn.
[Image: screenshot_tscm.jpg]
Have fun !


Attached Files
.txt   htmltosf.txt (Size: 1.39 KB / Downloads: 19)

I love cookies Heart !
Find
Reply
02-06-2020, 08:31 PM,
#2
Blackcrow Offline
Valued crow and member
****
Posts: 438
Threads: 75
Joined: Jul 2017
RE: Image converter
Very nice work Povibi, it's very nice of you to share this with everyone!

Resistance, is futile.
Website Find
Reply
02-06-2020, 08:35 PM,
#3
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: Image converter
Ye, pretty nice work, don't see many applications yet on my end but it definitely is a good piece of code

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.