         }else{
             UIView.animateWithDuration(0.3, animations: { () -> Void in
                 self.circleimageview.alpha = 0.0
-                self.testbutton.backgroundColor = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
+                for(var i = 0; i < 4; i++){
+                    self.screentransitionbuttonarray[i].backgroundColor = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
+                }
                 self.menushow = 0
             })
             

    var circleimageview = UIImageView()
    
    var screentransitionbuttonarray: [UIButton] = []
    let buttonarrayinfo: [[Int]] = [[225,171,50],[75,260,50],[200,330,50],[145,217,90]]
    //x:225 y:171 w:50 h:50 右上
    //x:75  y:260 w:50 h:50 左下
    //x:200 y:330 w:50 h:50 右下
    //x:145 y:217 w:90 h:90 真ん中
    
    let testbutton = UIButton()
    
    override func viewDidLoad() {
        super.viewDidLoad()

            }else{
                screentransitionbutton.layer.cornerRadius = 25
            }
            
            screentransitionbuttonarray.append(screentransitionbutton)
            screentransitionbuttonarray[i].addTarget(self, action: "ScreenTransitionButtontapped:", forControlEvents: .TouchUpInside)
            screentransitionbuttonarray[i].tag = i
            AnimationMenuView.addSubview(screentransitionbuttonarray[i])
        }

        
        
        //viewへの追加と前後関係の調整
        self.AnimationMenuView.addSubview(circleimageview)
