import scala.swing.Swing.pair2Dimension
import scala.swing.{ MainFrame, Panel }
import java.awt.{ Color, Graphics2D }

object YinYang extends scala.swing.SimpleSwingApplication {
  var preferedSize = 500

  
  def drawTaijitu(g: Graphics2D, size: Int) {
    val sizeMinsOne = size - 1