aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:10 PM |
D: I can't even begin to guess how to make a regular hexagon using 1 pixel wide frames and iterating them 40 times with a dynamic position and size to create a hexagon... Formulas anyone??
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:14 PM |
| http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:17 PM |
I'm still trying to see how that article applies ._. I'll just make a table or something... Or hand draw them o.o
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 25 Sep 2011 08:20 PM |
You don't realize how it applies?
- "Go outside, the graphics are amazing!" |
|
|
| Report Abuse |
|
|
Aaaboy97
|
  |
| Joined: 05 Apr 2009 |
| Total Posts: 6612 |
|
|
| 25 Sep 2011 08:21 PM |
local function hexagon(center, radius) local hex = {} for T = math.pi/3, math.pi*2, math.pi/3 do hex[#hex + 1] = center + Vector2.new(math.sin(T)*radius, math.cos(T)*radius) end return hex end
Do what you want with it. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:31 PM |
I'm not sure what that's returning... Care to explain it??
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:32 PM |
It returns the corners of a hexagon lrn2trig |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:33 PM |
Ah. I don't know trig O.o I've only taken Alg I, II, Geo, and I'm in Statistics..
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:35 PM |
Y you skipz the trigs and the calculus? I will be takin ap stats next year, is it hard? |
|
|
| Report Abuse |
|
|
Aaaboy97
|
  |
| Joined: 05 Apr 2009 |
| Total Posts: 6612 |
|
|
| 25 Sep 2011 08:36 PM |
I haven't taken trig yet.
Experimenting with the trig functions on a graphing calculator is fun. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:38 PM |
@aaaboy
I figured, considering you're younger than me O.O Hmmm... I'm trying to come up with something concise... I've done this with triangles before (non-regular) Something where I iterate from 0 to 40 as an x position and then return the y size and y position...
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
thegenius
|
  |
| Joined: 03 Oct 2008 |
| Total Posts: 3838 |
|
|
| 25 Sep 2011 08:38 PM |
Draw a whole bunch of squares varying in size within a hexagon shape until they look like a hexagon. (Relate to fractals.)
(Note: Math FTW) (Also, thegenius is insane.) |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 08:39 PM |
@Donny
It's pretty boring... Lots of writing and a lot of logic over math. It's not really a math class at all... But I can't take IB this year so I was told to take this by my counselor...
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:44 PM |
Hmm, thanks.
But yea, use what aaaboy said + eye's post and you will get your hexagon. if you mess with the interval you can then rotate your hexagon |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 25 Sep 2011 09:15 PM |
I figured it out on my own... Using one conditional and one loop... And like basic math T_T
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 09 Jan 2012 12:04 PM |
| i know use sic triangles and stick them to gether thats how i make em! |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2012 12:04 PM |
| sorry typo six not sic lol |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2012 12:41 PM |
| Anaminus's gloo library can make awesome polygons with not much frames. It can literally make a checkmark with only 500 frames.. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 09 Jan 2012 03:29 PM |
Y U BAMP
Btw, 500 frames is a ton. |
|
|
| Report Abuse |
|
|
|
| 10 Jan 2012 05:14 PM |
Is there even a way to rotate a imagelabel/button/GUI?
~ 10 chicken goto 20 wing ~ |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 10 Jan 2012 05:19 PM |
| Not on ROBLOX, without investing in many uploaded decals, or using lots of frames. |
|
|
| Report Abuse |
|
|
|
| 10 Jan 2012 05:25 PM |
| Frames? How do those help? Can you rotate frames? |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 10 Jan 2012 05:26 PM |
| Nope. You basically have to create your Frame so it rotates. |
|
|
| Report Abuse |
|
|